Repository navigation
Implement goodtimes culling of entire pointing when gain config does … - #3554
Merged
Conversation
…not match cal-prod file
tmplummer
requested review from
laspsandoval,
leowerneck and
vineetbansal
and
a balanced review from Copilot
October 7, 2026 17:50
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The implementation matches the issue requirements and includes comprehensive focused tests.
0 open findings
What changed in this PR
Ensures unmatched Hi gain configurations receive zero exposure, preventing biased L2 map intensities.
Changes:
- Cull entire pointings whose gain state lacks exactly one cal-prod match.
- Add coverage for matching, ambiguous, missing, NaN, and existing cull states.
| File | Description |
|---|---|
imap_processing/hi/hi_goodtimes.py |
Adds and invokes gain-config culling. |
imap_processing/tests/hi/test_hi_goodtimes.py |
Tests the new filter and orchestration. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
tmplummer
merged commit Oct 8, 2026
b0a88e2
into
IMAP-Science-Operations-Center:dev
22 checks passed
tmplummer
deleted the
3551-hi-goodtimes-cull-the-full-pointing-when-its-gain-state-matches-no-cal-prod-gain_config_id
branch
October 8, 2026 16:43
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.
…not match cal-prod file
Change Summary
Overview
Closes #3551. When a pointing's detector gain state matches no gain_config_id in the cal-prod file, L1C already sets its counts to zero, but its exposure stayed at full length. That bias pulls L2 map intensities low. Goodtimes now culls the whole pointing in that case, so its exposure is zero too and L2 leaves it out.
File changes
Testing
Closes: #3551