'quitonerror' kwarg added to UBXReader.parse(). This is useful e.g. when parsing *.ubx recordings from u-center containing a mixture of GET, SET and POLL message modes (i.e. diagnostic and configuration data in addition to navigation messages). Setting quitonerror to ERR_IGNORE (0) allows you to scan the file for a particular msgmode (e.g. GET or POLL) while ignoring other modes.
Example ubxfile_ucenter.py added to illustrate use of quitonerror and msgmode kwargs when iterating *.ubx files.
CHANGES:
Bandit code security vulnerability task added to VSCode and GHA workflows
Fixes # msgmode warnings when parsing some u-center *.ubx files
Testing
Please test all changes, however trivial, against the supplied pytest suite tests/test_*.py. Please describe any test cases you have amended or added to this suite to maintain >= 99% code coverage.
If you're adding new UBX message definitions for Generation 9+ devices, please check for any corresponding configuration database updates (ubxtypes_configdb.py).
pyubx2 Pull Request Template
Description
RELEASE CANDIDATE 1.2.24
ENHANCEMENTS:
UBXReader.parse()
. This is useful e.g. when parsing *.ubx recordings from u-center containing a mixture of GET, SET and POLL message modes (i.e. diagnostic and configuration data in addition to navigation messages). Setting quitonerror to ERR_IGNORE (0) allows you to scan the file for a particular msgmode (e.g. GET or POLL) while ignoring other modes.ubxfile_ucenter.py
added to illustrate use of quitonerror and msgmode kwargs when iterating *.ubx files.CHANGES:
Fixes # msgmode warnings when parsing some u-center *.ubx files
Testing
Please test all changes, however trivial, against the supplied pytest suite
tests/test_*.py
. Please describe any test cases you have amended or added to this suite to maintain >= 99% code coverage.If you're adding new UBX message definitions for Generation 9+ devices, please check for any corresponding configuration database updates (
ubxtypes_configdb.py
).Checklist:
tests/test_*.py
unittest suite to maintain >= 99% code coverage.tests/test_*.py
unittest suite.