-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @rgklager, how are you currently converting TDMS to HDF5. Have you tried this and you're getting errors? Assuming your TDMS file is split into multiple chunks, then something like this code will read the data one chunk at a time: with nptdms.TdmsFile.open(file_path) as tdms_file:
hdf_file = tdms_file.as_hdf(hdf_path) I'm not very familiar with h5py though. We write to slices of a dataset at a time, and my understanding is this should write to disk without needing to keep the full array in memory: npTDMS/nptdms/export/hdf_export.py Line 77 in d2cddeb |
Beta Was this translation helpful? Give feedback.
Hi @rgklager, how are you currently converting TDMS to HDF5. Have you tried this and you're getting errors?
Assuming your TDMS file is split into multiple chunks, then something like this code will read the data one chunk at a time:
I'm not very familiar with h5py though. We write to slices of a dataset at a time, and my understanding is this should write to disk without needing to keep the full array in memory:
npTDMS/nptdms/export/hdf_export.py
Line 77 in d2cddeb