Read Galileo SSI VICAR files with strict=False (#219) - #220
Conversation
Fixes #219. Twenty-three files in GO_0002/RAW_CAL carry a stray 0x80 byte in the BARC label value ('IP\x80' or 'RC\x80'), which rms-vicar rejects under its default strict parsing. rms-vicar PR #18 added the strict=False option for exactly this file; the Cassini ISS host already uses it, but the GOSSI host never did. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PvYx8MuUbgEaoyr2DQTvPh
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughThe Galileo SSI ChangesGalileo SSI loading
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to Galileo SSI loading now accepts VICAR files with the documented non-ASCII BARC label byte, enabling affected images to load without an identified regression risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #220 +/- ##
=======================================
Coverage 78.84% 78.84%
=======================================
Files 211 211
Lines 25903 25903
Branches 2816 2816
=======================================
Hits 20423 20423
Misses 4617 4617
Partials 863 863 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Fixes #219.
Problem
vicar.VicarImage.from_fileraisesBARC string value is not ASCII: 'IP\x80'onGO_0002/RAW_CAL/C0003061900R.IMG. The archive label really contains a stray0x80byte after the BARC value, so this is a data defect, not an rms-vicar bug. A scan of all 14,672.IMGfiles in the local GO_0xxx holdings found 23 affected files, all inGO_0002/RAW_CAL(2 withIP\x80, 21 withRC\x80; normal values areIP,RC,OFF).This was already addressed on the rms-vicar side in SETI/rms-vicar#18, which added the
strictflag (defaultTrue) and ships this exact file as thestrict=Falsetest case. The Cassini ISS host adoptedstrict=Falsein #154, but the GOSSI host never did.Change
One line in
oops/hosts/galileo/ssi/__init__.py: passstrict=FalsetoVicarImage.from_file, matching the Cassini ISS host.Verification
Snapshots.EXPOSURE_DURATION = 0and still fail with aZeroDivisionErrorinMetronome. That is a separate, pre-existing problem affecting ~300 zero-exposure frames archive-wide (a clean zero-exposure file such asGO_0007/RAW_CAL/C0164006000R.IMGfails identically today). It will be handled in a follow-up.No regression test is included because host tests read from the shared OOPS-Resources test-data tree and none of the affected files are there yet.
🤖 Generated with Claude Code
https://claude.ai/code/session_01PvYx8MuUbgEaoyr2DQTvPh
Summary by CodeRabbit