How to access signal data when generators are failing? #696
-
Python 3.7.6 Hi danielhrisca, Using the iter_groups and iter_channels generators I can only access two of three available channels in my mf4 (variable name 'mdf' in the following). The third one raises an exception "wrong data type "11" for vlsd channel" The mdf file was recorded with some vector logger and the vector validator claims it is legal. Despite the file being valid or not, it comes from a customer so there's not much to do about it. At this point I'm somewhat stuck how to finally retrieve pandas dataframes and I have the feeling it's not the right path anyway. So my questions are:
I can provide demo data, though about 250 MB in size. Thank you so much! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@monoboy-hh please try the development branch code |
Beta Was this translation helpful? Give feedback.
-
hello @danielhrisca I open a This fails though, as one group cannot be parsed, with the exception "asammdf.blocks.utils.MdfException: wrong data type "0" for vlsd channel "ETH_Frame.DataBytes"" and I am not able to load the file at all. Is there a way to silently ignore this kind of exception and if yes, how? Thanks a lot in advance for your support and kind regards |
Beta Was this translation helpful? Give feedback.
-
for i in range(len(mdf_file.groups)):
try:
df = mdf_file.get_group(i)
except Exception as e:
print(e) |
Beta Was this translation helpful? Give feedback.
@monoboy-hh please try the development branch code