Skip to content

IDEX IG velocity estimate limiter - #3463

Merged
lacoak21 merged 2 commits into
IMAP-Science-Operations-Center:devfrom
aldo9253:idex_l2a_ig_vel_limit
Sep 22, 2026
Merged

lacoak21 merged 2 commits into
IMAP-Science-Operations-Center:devfrom
aldo9253:idex_l2a_ig_vel_limit

Conversation

@aldo9253

Copy link
Copy Markdown
Collaborator

Change Summary

Overview

Closes #3462

Restrict IDEX Ion Grid velocity estimates to the inclusive range of 1–100 km/s. Estimates outside this range and their corresponding mass estimates are set to NaN. Fitted charges and waveform fits remain unchanged.

File changes

  • idex_l2a.py: Add the velocity-range check before calculating Ion Grid mass.
  • test_idex_l2a.py: Add seven parameterized test cases covering excessive velocities with either target gain, inclusive boundaries, and values outside both limits.

Testing

  • 110 IDEX tests passed.

@aldo9253
aldo9253 marked this pull request as draft September 16, 2026 16:45
@lacoak21
lacoak21 requested a balanced review from Copilot September 18, 2026 14:40
@lacoak21 lacoak21 removed their assignment Sep 18, 2026
@lacoak21
lacoak21 self-requested a review September 18, 2026 14:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The implementation bounds charge ratio rather than the specified 1–100 km/s velocity range.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Attempts to constrain IDEX Ion Grid velocity and mass estimates to calibrated limits.

Changes:

  • Converts charge ratios to percentages for velocity calibration.
  • Adds ratio validation and parameterized boundary tests.
File summaries
File Description
idex_l2a.py Adds calibration conversion and validation.
idex_constants.py Clarifies calibration units.
test_idex_l2a.py Adds ratio-boundary coverage.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread imap_processing/idex/idex_l2a.py

@lacoak21 lacoak21 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but there is still a pending comment. I will approve when its addressed.

@lacoak21
lacoak21 marked this pull request as ready for review September 22, 2026 18:49
@lacoak21
lacoak21 self-requested a review September 22, 2026 20:27
@lacoak21
lacoak21 merged commit 6dce0a9 into IMAP-Science-Operations-Center:dev Sep 22, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG - IDEX L2A Ion Grid Velocity Estimate are unbounded

3 participants