10-15-2019 04:57 PM
Hello,
I am very new to working with TDSM files. I am trying to access the metadata (units, etc.) from python. I have tried the npTDMS and pytdms packages with no success. Has anyone figured out how to access the metadata in python?
Thanks!
10-16-2019 05:20 AM
I find npTDMS to be a little confusing to work with. You can read TDMS properties with npTDMS like this:
from nptdms import TdmsFile
tdms = TdmsFile(path)
group_names=tdms.groups()
g0=tdms.group_channels(group_names[0])
ch0=g0[0]
dt=ch0.property('wf_increment')
# or on one line dt=tdms.group_channels(tdms.groups()[0])[0].property('wf_increment')