-
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
incorrect endianness when using dataread and channel_list #187
Comments
dataRead should handle the byte order. |
Hi Aymeric, Thanks a lot for looking into this issue.
then
|
It is weird to have signed int for a time signal.. But anyway, I think I found the obvious bug in dataRead, line 125 and 126, should not be 0,1 but 2,3 |
Many thanks, all is fine now. Are you planning on applying the same fix to the master branch? |
Yes, I will issue new tag soon after some quality check |
Python version
'3.7.4 (default, Jul 9 2019, 18:13:23) \n[Clang 10.0.1 (clang-1001.0.46.4)]'
Platform information
'Darwin-19.5.0-x86_64-i386-64bit' same problem exits on linux machine
Numpy version
'1.18.1'
mdfreader version
'4.1' dev branch
Description
unfortunately I am using proprietary data files and I cannot send you an example MD4-file, but hopefully I narrowed down my problem enough for you to have to have a look. The problem only exists when I am using the dataRead module and the
channel_list
argument. When reading in the whole MD4-file or when I am removing the dataRead.so everything is fine.The problem is as follows: When I am reading in a single channel of the file the data of the channel itself is fine but the corresponding master channel is read in with the wrong endianness. I am reading in the channel with the
convert_after_read=False
flag:when flipping the endianness of this I get the correct 100 Hz sampled time channel after applying the conversion factor of 1e-9:
The text was updated successfully, but these errors were encountered: