-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix bug when setting meta.background in SkyMatchStep. #1233
Fix bug when setting meta.background in SkyMatchStep. #1233
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1233 +/- ##
=======================================
Coverage 78.87% 78.87%
=======================================
Files 117 117
Lines 8071 8071
=======================================
Hits 6366 6366
Misses 1705 1705
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Looks good, it was time for this update. Thanks @mairanteodoro!
c51a07f
to
ebc5596
Compare
d01bf65
to
1dfd8bb
Compare
Attaching comparison of the relevant arrays between the output from the regression test against the truth file from Artifactory. Black and white circles indicate the position of the worst absolute and the worst fractional differences, respectively, as reported by the regtest (ran locally, which, by the way, differs from the coordinates reported when ran on Jenkins). |
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.
Looks good. My rule is that I use "is" when I am comparing objects that may be the same object, and == when I am comparing values. In this context I was surprised by using is to compare bools on 336 but otherwise looks good.
1dfd8bb
to
bf5fdb2
Compare
Fixed it. |
@mairanteodoro This is not attached to a milestone. Was this work included in the last release? |
@nden Not yet. We can see it in this comparison between the |
@mairanteodoro OK, I added a milestone. |
Resolves RCAL-837
This PR addresses a bug in
SkyMatchStep
that was causing meta.background.subtracted to always be set toNone
instead ofTrue
/False
, which was preventingResampleStep
from properly using the sky level as determined bySkyMatchStep
and set inmeta.background.level
.The changes to the code also required some refactoring to the unit tests.
The code changes in this PR are also related to this old issue: spacetelescope/rad#247
Regression tests
The only failed test has nothing to do with the changes in this PR.
https://plwishmaster.stsci.edu:8081/job/RT/job/Roman-Developers-Pull-Requests/764/https://plwishmaster.stsci.edu:8081/job/RT/job/Roman-Developers-Pull-Requests/770/https://plwishmaster.stsci.edu:8081/job/RT/job/Roman-Developers-Pull-Requests/810/
Checklist
CHANGES.rst
under the corresponding subsection