danielhrisca / asammdf

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

Add return to iter_to_dataframe when filtering channels #957

Closed hugabora closed 1 year ago

hugabora commented 1 year ago

Bugfix:

mdf iter_to_dataframe takes channels parameter to allow filtering. In this case a filtering is set for the mdf and same member function is invoked. However at the end of this if clause there is no return, effectively continuing into the "else" codepath instead of stopping the iteration. Effectively we get duplicated / more rows.

Added return.

fyi: @danielhrisca

danielhrisca commented 1 year ago

Thank you !

hugabora commented 1 year ago

Thank you as well!