Repository navigation
|
Hello, |
Answered by
adamreeve
Nov 17, 2024
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 |
1 reply
Answer selected by
rgklager
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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