-
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
KeyError #27
Comments
Hi, |
Hey ratal, thanks for the input! I tried convertAfterRead=False which didn't help though. The error occurs before reaching line 1367 of mdf4reader where the boolean is checked:
is never reached. I would like to try to load only a set of channels, which can be done via argument channelList = ['channel', 'list']. However, I don't know the data and am not sure what to put as "channel" or "list" EDIT: I tried mdfreader.mdfinfo("./file.MF4").listChannels("./file.MF4") to get the channel names. However, I once again received a KeyError at mdfinfo4 line 990:
|
Indeed documentation is maybe not so clear about channel listing. Below is the correct procedure: |
I still receive the same error as mentioned above, even if I use the approach you just described. I don't know whether the file is nested but it's possible. Sadly, I can't send you the data file as it is confidential from a project I work with several partners. A info4 dict might be possible though, if you tell me how I create it. |
After thinking, it might be complicated for you and me to use this info4 dict. Instead, could you use mdfvalidator from vector (free use) and export as an xml the file structure ? It will help me to understand it. |
2 feedback since 2 weeks, closed |
I have the same issue but with a relatively small file 2,46 Mb. I would think it is a nested data format problem. |
Hello, I'm trying to read an MDF4 file and have 2 issues.
self['cc_ref'][i] = CCBlock(fid, self['cc_ref'][i])['unit']['Comment']
I receive a KeyError for 'name'. As the only entry of CCBlock with a Comment key was an entry called unit I replaced those. Several CCBlocks didn't have unit either which I countered by introducing
I'm not sure how much this impacts the further processing. mdfreader.mdfinfo() is working now though as it seems
The text was updated successfully, but these errors were encountered: