This PR addresses an issue where the ASCReader crashes when encountering the line 0.000000 CANFD Start of measurement in ASC log files. This line is a combination of two different conventions and should not contain the "CANFD" flag.
Changes
Added logic in the __iter__ method of ASCReader to skip lines matching the regex pattern for "Start of measurement".
This ensures that such special indicator lines are handled separately and do not cause parsing errors.
Summary
This PR addresses an issue where the ASCReader crashes when encountering the line
0.000000 CANFD Start of measurement
in ASC log files. This line is a combination of two different conventions and should not contain the "CANFD" flag.Changes
__iter__
method ofASCReader
to skip lines matching the regex pattern for "Start of measurement".Fixes #1786.