CCSDSPy / ccsdspy

I/O interface and utilities for CCSDS binary spacecraft data in Python. Library used in flight missions at NASA, NOAA, and SWRI
https://ccsdspy.org
BSD 3-Clause "New" or "Revised" License
78 stars 19 forks source link

Add support for reset_file_obj #113

Closed tloubrieu-jpl closed 7 months ago

tloubrieu-jpl commented 7 months ago

So to be able to recall the .load of the method of the Packet Types multiple time on the same file buffer, as needed when one need to parse once the packet at a coarse level to decide what the finer packet structure is and the parse them again.

Fixes https://github.com/CCSDSPy/ccsdspy/issues/111

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (f3957b6) 95.75% compared to head (09cabca) 96.05%.

:exclamation: Current head 09cabca differs from pull request most recent head aa1cef5. Consider uploading reports for the commit aa1cef5 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #113 +/- ## ========================================== + Coverage 95.75% 96.05% +0.29% ========================================== Files 7 7 Lines 707 710 +3 ========================================== + Hits 677 682 +5 + Misses 30 28 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

tloubrieu-jpl commented 7 months ago

Thanks @ddasilva , I made the changes you requested.

ddasilva commented 7 months ago

Merged. Thanks @tloubrieu-jpl !