2821 hi l1c use hi goodtimes in pset processing#2829
Open
subagonsouth wants to merge 7 commits intoIMAP-Science-Operations-Center:devfrom
Open
2821 hi l1c use hi goodtimes in pset processing#2829subagonsouth wants to merge 7 commits intoIMAP-Science-Operations-Center:devfrom
subagonsouth wants to merge 7 commits intoIMAP-Science-Operations-Center:devfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Integrates Hi L1B goodtimes culling into the Hi L1C PSET pipeline so that DE counts and exposure time exclude events/clock ticks that fall in bad-time intervals.
Changes:
- Threaded a
goodtimes_dsdependency through Hi L1C PSET generation and addedgood_time_and_phase_mask()for filtering usingcull_flags. - Updated CLI Hi L1C PSET processing to require/load a goodtimes dependency and tightened dependency validation.
- Expanded/updated unit tests and external-data tests to cover goodtimes filtering behavior and reduce fixture duplication.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
imap_processing/hi/hi_l1c.py |
Adds goodtimes-aware filtering for PSET counts/exposure and introduces good_time_and_phase_mask() based on cull_flags. |
imap_processing/cli.py |
Loads/validates goodtimes as an explicit dependency for Hi L1C PSET processing. |
imap_processing/tests/hi/test_hi_l1c.py |
Adds fixtures and new tests verifying goodtimes filtering in counts/exposure and mask logic. |
imap_processing/tests/test_cli.py |
Updates CLI test inputs for Hi L1C PSET to include the goodtimes dependency. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Summary
This PR integrates goodtimes filtering into the Hi L1C PSET algorithm. Events and exposure time clock ticks that fall within "bad" times (as identified by the goodtimes product) are now excluded from the L1C counts and exposure time calculations.
Changes
imap_processing/hi/hi_l1c.py
imap_processing/cli.py
imap_processing/tests/hi/test_hi_l1c.py
Closes: #2821