[SciPy-User] Reading TDM/TDMS Files with scipy

Kevin balem@univ-brest...
Wed Feb 20 09:24:26 CST 2013


Floris <florisje <at> hotmail.com> writes:

> 
> Nils Wagner <nwagner <at> iam.uni-stuttgart.de> writes:
> 
> > 
> > Hi all,
> > 
> > Is it possible to read TDM/TDMS files with scipy ?
> > 
> > I found a tool for Matlab 
> > http://zone.ni.com/devzone/cda/epd/p/id/5957
> > 
> > Nils
> > 
> 
> Hello Nils,
> I made a little tool for that: pyTDMS.
> http://sourceforge.net/projects/pytdms/
> Hope that helps.
> Floris
> 
Hi,
This message is quite old but I try to use your pytdms which seems to be a great 
tools. However I get this error message :

==> Interleaved
Traceback (most recent call last):
  File "test_fft.py", line 4, in <module>
    (ob,ra) = tdm.read("14_02_2013_10_52_12.tdms")
  File "/home/balem/Desktop/TANDEM/test actif rade 14022013/pyTDMS.py", line 
900, in read
    data = readSegment(f,sz,data)
  File "/home/balem/Desktop/TANDEM/test actif rade 14022013/pyTDMS.py", line 
762, in readSegment
    newdata = readRawData(f,leadin,newobjects,newobjectorder,filesize)
  File "/home/balem/Desktop/TANDEM/test actif rade 14022013/pyTDMS.py", line 
648, in readRawData
    for c in channel: data[c]=[]
TypeError: unhashable type: 'dict'


Unfortunately I have no clue about how the tdms file is written, maybe you can 
help me on this ?
Many thanks

Kevin






More information about the SciPy-User mailing list