Skip to content
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

TypeError: data type '<f1' not understood #444

Closed
morbult opened this issue Nov 27, 2020 · 8 comments
Closed

TypeError: data type '<f1' not understood #444

morbult opened this issue Nov 27, 2020 · 8 comments

Comments

@morbult
Copy link
Contributor

morbult commented Nov 27, 2020

Hi again Daniel,

I now got a problem with several mdf 4.11 files which I cannot even initialise. They can however be opened with other softwares, at least in ETAS MDA and Vector MDF Validator. In MDF Validator I only get this warning, no XSD files for this MDF version (411), used next matching version 410, but otherwise no problem.

I run asammdf.MDF(file) and get TypeError: data type '<f1' not understood and this traceback

Traceback (most recent call last):

  File "<ipython-input-17-1e9cf5cc7812>", line 1, in <module>
    asammdf.MDF(file)

  File "C:\Users\mjosefs8\AppData\Local\Continuum\anaconda3\lib\site-packages\asammdf\mdf.py", line 130, in __init__
    self._mdf = MDF4(name, **kwargs)

  File "C:\Users\mjosefs8\AppData\Local\Continuum\anaconda3\lib\site-packages\asammdf\blocks\mdf_v4.py", line 394, in __init__
    self._read(mapped=True)

  File "C:\Users\mjosefs8\AppData\Local\Continuum\anaconda3\lib\site-packages\asammdf\blocks\mdf_v4.py", line 603, in _read
    ch_addr, grp, stream, dg_cntr, ch_cntr, mapped=mapped

  File "C:\Users\mjosefs8\AppData\Local\Continuum\anaconda3\lib\site-packages\asammdf\blocks\mdf_v4.py", line 963, in _read_channels
    channel.channel_type,

TypeError: data type '<f1' not understood

Unfortunately I can't send you a file because I am not able to scramble due to this error.

python=3.7.9
asammdf=5.23.1
numpy=1.19.2

@danielhrisca
Copy link
Owner

Can you scramble using the code from here ratal/mdfreader#189 (comment)?

@morbult
Copy link
Contributor Author

morbult commented Nov 27, 2020

I will try but the line copy(name, dst) does not work because copy is undefined. Where does the function come from?

@danielhrisca
Copy link
Owner

I think it should be shutil.copy

@danielhrisca
Copy link
Owner

import shutil

@morbult
Copy link
Contributor Author

morbult commented Nov 27, 2020

Yes I used shutil.copy and sent you the file just now. Thanks!

@danielhrisca
Copy link
Owner

Should work now with the development branch code. Thank you for the file!

@morbult
Copy link
Contributor Author

morbult commented Nov 28, 2020

Thanks! I will check later that it works.

When do you think the next version will be released?

@morbult
Copy link
Contributor Author

morbult commented Nov 30, 2020

Yep, the development branch works so the issue can be closed. Thanks for quick help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants