Conversation
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The implementation matches the reported failure mode and includes focused regression coverage.
Review effort: Balanced
Findings: None
What changed in this PR
Fixes Hi goodtimes sweep boundaries so truncated or repeated ESA steps begin new sweeps without splitting packets from the same 8-spin set.
Changes:
- Uses
esa_step_metto identify 8-spin set transitions. - Treats non-increasing ESA steps as sweep boundaries.
- Adds coverage for truncated, ten-step, and multi-packet sweeps.
| File | Description |
|---|---|
imap_processing/hi/hi_goodtimes.py |
Corrects sweep boundary detection and MET selection. |
imap_processing/tests/hi/test_hi_goodtimes.py |
Updates fixtures and expands sweep-indexing tests. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This branch has not been deployed
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.
Change Summary
Overview
File changes
hi_goodtimes.py:_get_sweep_indices()now takesesa_step_metand only compares ESA steps where an 8-spin set changes._add_sweep_indices()passesesa_step_met(DE) ormet(goodtimes).test_hi_goodtimes.py: addedesa_step_metto the test DE datasets and updated the_get_sweep_indicestests for the new signature.Testing
Closes: #3519