-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to read mf4 with variable length of channels #136
Comments
Hi |
Following is the If block which has line 453 in mdfreader.py 401 temps = defaultdict() |
This is weird because temps['id'] in ('##DZ', b'##DZ') should not raise this kind of error, especially that is not so different from similar previous condition tests |
Long time no feedback, closing |
Pyhton version
Python 3.5.3
Platform information
Windows 7
Numpy version
numpy = 1.14.0
mdfreader version
mdfdata.MDFVersionNumber
: 400
Description
I have mf4 mdf file. It have more than 3000 signals or channels whatever it is called. All channels / signals are recorded at different frequencies as they are from CAN BUS recording of a car using ETAS INCA data logger. When i am trying to load it , it gives error saying structure must have same size. Looks like it is looking for same length of all signals. Where as in MDFREADER 0.2.7 it was all working fine. If i install MDFREADER 0.2.3 it works well. There seems to be some problem in 2.7.4
MDF Version of file is MF4.
mdf_file = filedialog.askopenfilename()
mdfdata = mdfreader.mdf(fileName=mdf_file)
Traceback (most recent call last):
File "", line 11, in
mdfdata = mdfreader.mdf(fileName=mdf_file)
File "c:\python35\lib\site-packages\mdfreader\mdf.py", line 153, in init
compression=compression)
File "c:\python35\lib\site-packages\mdfreader\mdfreader.py", line 399, in read
convertAfterRead, filterChannelNames, compression)
File "c:\python35\lib\site-packages\mdfreader\mdf4reader.py", line 1248, in read4
buf.read(channelSet, info, self.fileName)
File "c:\python35\lib\site-packages\mdfreader\mdf4reader.py", line 340, in read
self[recordID]['data'] = self.load(record, info, nameList=channelSet, sortedFlag=True)
File "c:\python35\lib\site-packages\mdfreader\mdf4reader.py", line 453, in load
sortedFlag=sortedFlag, vlsd=vlsd)
ValueError: structures must have the same size
The text was updated successfully, but these errors were encountered: