mdfreader
mdfreader copied to clipboard
AttributeError: 'list' object has no attribute 'dtype'
Python version
3.6.9
Platform information
Linux-5.4.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
Numpy version
1.19.5
mdfreader version
4.1
Description
import mdfreader yop = mdfreader.Mdf('x12.mf4')
x12.mf4 is a file created by IMC Famos, it is a 2-D Matrix with "Structure" property of segments.
Detailed Error
Traceback (most recent call last):
File "mdf_read_test.py", line 13, in
Hi, You seem to be using a special structure, probably never encountered or thought of. Channel Array block or compositions applications can be complicated. But just the traceback is not enough for me to troublehsoot. If you can send the file would be perfect or a snapshot of this composition from MDFValidator to understand this structure (Famos is not so helping) You could also scramble/anonymize the file using asammdf if you have confidentiality issues.
data = np.array(data, dtype=np.float32) use this on ur dataset