Repository navigation
CoDICE: retain preceding SCI-LUT on transition days - #1779
Draft
bryan-harter wants to merge 1 commit into
Draft
bryan-harter wants to merge 1 commit into
bryan-harter wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A daily CoDICE L1A input can span an onboard SCI-LUT change even though ancillary validity is recorded only by date. On 2025-12-18, the new LUT contains table 3974360784, while early science packets still require 3972558773 from the delivery ending 2025-12-17.
Add a CoDICE L1A
allcustom handler that retains the latest version of the immediately preceding LUT when the selected LUT becomes effective during the daily partition. Both filenames enter the normal dependency manifest and hash. Other ancillaries and non-transition days keep the existing selector behavior; the instrument-team deliveries are unchanged.Validation:
pytest tests/test_codice_lut_dependencies.py -q— 5 passed against an in-memory SQLite ancillary catalog. Covers expired predecessor inclusion, independent version selection, future exclusion, normal days, first delivery, unrelated ancillary inputs, missing required coverage, and handler registration. Ruff and whitespace checks pass.Companion processing PR: IMAP-Science-Operations-Center/imap_processing#3642. It resolves supplied LUTs by packet Table_ID instead of using the first file and preserves changing voltage/energy grids. Keep this draft until the processing change is available in the CoDICE image; enabling dependency selection first would still leave the existing processor using only one LUT.
Related: IMAP-Science-Operations-Center/imap_processing#2697
Companion processing validation is now complete locally: 21 non-external CoDICE tests passed; all 4,532 real table-bearing science packets from December 18 produced ten L1A science CDFs, and all five Lo products passed L1B conversion and CDF readback. The companion also preserves time-varying voltage/energy grids and avoids a 2-D coordinate swap in L2 (unit tested). A full L2 production run was not performed.