-
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
Error when using method get_channel_data(... , raw_data=True) #168
Comments
Hi, |
Hi, |
I pushed modifications that should solve this bug, you can check in dev branch. Thanks for reporting it. |
Hi, just tested the fix with several files. Works perfectly, thank you! |
Hi, would you be so kind to release the fix on your master branch? |
Python version
'3.6.9'
Platform information
' Windows 10 Enterprise Version 1809 - Build 17763.678'
Numpy version
'1.16.4'
mdfreader version
'3.2'
Description
After updating to mdfreader version 3.2, I have encountered the following issue:
In my script I am loading a .mf4 file with the option no_data_loading=True.
Later, I read every channel explicitly by calling get_channel_data with the option raw_data=True.
This results in the following error:
File "D:...\converter\format\mdf\converter.py", line 90, in _export
raw = mdf.get_channel_data(signal.name, raw_data=True)
File "C:...\lib\site-packages\mdfreader\mdfreader.py", line 474, in get_channel_data
vector = self._get_channel_data4(channel_name, raw_data)
File "C:...\lib\site-packages\mdfreader\mdf4reader.py", line 1457, in _get_channel_data4
self.read4(file_name=None, info=None, channel_list=[channel_name], convert_after_read=False)
File "C:...\lib\site-packages\mdfreader\mdf4reader.py", line 1277, in read4
if not info['DG'][dataGroup]['dg_data'] == 0 and
KeyError: (0, 0, 1)
Some further things I noticed:
The code worked properly with an older version of the mdfreader (2.7.6)
Also, the code works if I set the option raw_data=False when calling the get_channel_data method.
The text was updated successfully, but these errors were encountered: