Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pyspartn Pull Request Template
Description
timetags
argument to SPARTNReader & SPARTNMessage, to allow them to use any available 32-bit gnssTimeTag values from the incoming datastream in order to decrypt messages (rather than having to provide an explicit basedate).timetags
argument is a dict of the format{0: 495763673, 1: 485866844, 3: 410283479}
where the key represents the message subType (0 = GPS, 1 = GLO, 2 = GAL, etc.), and the value represents the 32-bit gnssTimeTag value from the data stream (if present).TIMEBASE
(datetime(2010, 1, 1, 0, 0, tzinfo=timezone.utc)
), or integer0
, is passed to SPARTNReader, it will endeavour to capture 32-bitgnssTimeTag
values for eachmsgSubtype
from the incoming data stream and pass these to SPARTNMessage via thetimetags
arg to decrypt messages of the samemsgSubtype
with 16-bit gnssTimeTags (timeTagtype=0
).gnssTimeTag
values for the samemsgSubtype
e.g. if an HPAC message withmsgSubtype=2
precedes a GAD or OCB message withmsgSubType=2
andtimeTagtype=0
- until such an eventuality occurs, decryption of GAD or OCB messages may fail!quitonerror=ERRLOG
orquitonerror=ERRIGNORE
when setting basedate toTIMEBASE
.SPARTNDecryptionError
if unable to successfully decrypt/decode message using key and basedate provided.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 >= 90% code coverage.Checklist:
CONTRIBUTING.MD
).tests/test_*.py
pytest suite to maintain >= 90% code coverage.tests/test_*.py
unittest suite.