Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JP-3765: Keep jump flags going into likelihood-based fitting algorithm #339

Merged
merged 5 commits into from
Mar 5, 2025

Conversation

drlaw1558
Copy link
Contributor

@drlaw1558 drlaw1558 commented Feb 11, 2025

Partially resolves JP-3765 by retaining prior jump flags in the likelihood ramp-fitting algorithm.

Copy link

codecov bot commented Feb 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.96%. Comparing base (e601527) to head (068afd9).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #339      +/-   ##
==========================================
- Coverage   86.00%   85.96%   -0.04%     
==========================================
  Files          61       61              
  Lines       10340    10333       -7     
==========================================
- Hits         8893     8883      -10     
- Misses       1447     1450       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@drlaw1558 drlaw1558 marked this pull request as ready for review February 20, 2025 16:24
@drlaw1558 drlaw1558 requested a review from a team as a code owner February 20, 2025 16:24
@drlaw1558
Copy link
Contributor Author

Tagging @t-brandt to take a look.

@t-brandt
Copy link
Contributor

I think the right approach is probably to go with this for now. In the future I think we should explore more selective use of the twopointdifference code in tandem with likelihood-based jump detection.

@drlaw1558
Copy link
Contributor Author

Not sure why I can't tag specific reviewers, so tagging @kmacdonald-stsci here instead.

Copy link
Collaborator

@kmacdonald-stsci kmacdonald-stsci left a comment

Choose a reason for hiding this comment

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

This looks fine, but I remember having this conversation in the past and deciding the best action is to remove the flagging when LIKELY is selected. That has been determined to be wrong, now?

I approved this PR, but would like to make sure the answer above is "yes".

@drlaw1558
Copy link
Contributor Author

@kmacdonald-stsci Yes; I think we've learned that there are enough edge cases that the regular jump step has been tuned to handle that it's useful to default to keeping those flags. They can always be turned off by skipping the jump step, and future work can prioritize more complex interaction between the two if necessary to do so. This should allow INS testing of the LIKELY method to continue moving ahead.

@schlafly
Copy link
Collaborator

schlafly commented Mar 4, 2025

FWIW, this doesn't affect romancal and is fine on our end.

@melanieclarke
Copy link
Contributor

Copy link
Contributor

@melanieclarke melanieclarke left a comment

Choose a reason for hiding this comment

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

Regression tests show no changes for jwst or romancal. It looks like we do not yet have regression tests that explicitly use the likelihood algorithm.

LGTM for INS testing purposes. I will add a note to JP-3765 that we will need to add some regression tests for this algorithm.

@melanieclarke
Copy link
Contributor

I will take Eddie's comment as approval from the romancal side and go ahead and get this merged.

@melanieclarke melanieclarke merged commit 9889a66 into spacetelescope:main Mar 5, 2025
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation ramp_fitting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants