Replies: 1 comment 13 replies
-
|
When I say the current release fails this is what I mean: Note: I added the "of 2" part for my debugging, this is from line 39/40 in decode.py |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Me again!
As part of my testing I'm backfilling a lot of old telemetry files with our new extraction tool that uses CCSDSPy. On rare occasions some files completely fail at the split_by_apid step because of (what I believe to be) additional garbage data that made it into the file somehow during data dump from the spacecraft.
I made a quick and dirty alteration in the iter_packet_bytes function of utils.py adding a try/except so that the code could continue if it happens across garbage like this:
line 66 in utils.py
I tested this version and it works in the sense that the CCSDSPy code can continue and decode the rest of the file instead of failing. I get a single error:
"Error in iter_packet_bytes at offset 35034720, Primary header byte sequence of 2 must be 6 bytes long"and then the code continues on decoding the rest of the file because it skips over those 2 bytes and continues, vs the current release fails. Would it be possible for you to add something like this to an official release? I think it's very beneficial.
Thanks again for all your help,
Bill
Beta Was this translation helpful? Give feedback.
All reactions