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

Add return to iter_to_dataframe when filtering channels #957

Closed hugabora closed 7 months ago

hugabora commented 7 months 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 7 months ago

Thank you !

hugabora commented 7 months ago

Thank you as well!