-
Notifications
You must be signed in to change notification settings - Fork 171
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-3743: Make outlier detection respect weights for in-memory models #8777
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8777 +/- ##
==========================================
- Coverage 60.79% 60.79% -0.01%
==========================================
Files 373 373
Lines 38696 38701 +5
==========================================
+ Hits 23527 23529 +2
- Misses 15169 15172 +3 ☔ View full report in Codecov by Sentry. |
The two regtest failures are caused by an unrelated PR and match the nightly runs here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Would you queue up another regtest to test the refactoring? Once that passes (or shows only unrelated failures) I think this is good to go.
Thanks for finding and fixing the bug!
Will do later today, when Jenkins is free. Maybe that will also give time for one of the maintainers to add any comments they have. I doubt the regtests will fail if the unit tests do though, since I believe they all run with the default |
This looks good to me - thanks especially for updating the unit test to catch this. But should we also add a regtest that runs with and without on_disk=True? If they take different code branches in other places, it might be a good idea to verify the results are always the same in both cases. |
Good idea. The place I found for this was in the tests of the mtimage pipeline. I think this is the best choice because (1) it covers the changes to assign_mtwcs and (2) it can be parametrized easily here because the test is isolated to calwebb_image3 and doesn't run detector1 and image2 like test_nircam_image and test_miri_image do. Slightly unrelated, but I also changed |
Another round of regression tests started here |
Great, thanks!
Sounds like a good idea to me. |
regtests are clean, can this be merged now @melanieclarke ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge away!
Resolves JP-3743
Closes #8776
This PR fixes a bug that causes the results of outlier detection to differ between the on-disk and in-memory cases any time there are weights that fall below the threshold value.
Tasks
Build 11.3
(use the latest build if not sure)CHANGES.rst
within the relevant release section (otherwise add theno-changelog-entry-needed
label to this PR)docs/
pageokify_regtests
to update the truth files