danielhrisca / asammdf

Fast Python reader and editor for ASAM MDF / MF4 (Measurement Data Format) files
GNU Lesser General Public License v3.0
612 stars 216 forks source link

Can we avoid to raise an error of to_dataframe of ''multiple occurrences"? #968

Closed shangrilaer closed 5 months ago

shangrilaer commented 6 months ago

As I've some mdf files with dump channels of same name , what I want is to just convert with these names with a counter added to its end but not raise a error and the file not converted.

danielhrisca commented 6 months ago

configure the object to not raise the error

mdf = MDF(filename)
mdf.configure(raise_on_multiple_occurrences=False)
mdf.to_dataframe()