Closed mairanteodoro closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 78.87%. Comparing base (
d10f06b
) to head (a8015c0
). Report is 195 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
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).
data
array:
err
array:
var_flat
array:
var_poisson
array:
var_rnoise
array:
weight
array:
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.
Fixed it. Thanks for catching that overlook of mine. ;)
@mairanteodoro This is not attached to a milestone. Was this work included in the last release?
@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 main
branch and the 0.15.1
release branch (commit 4db6c23feac08507dce253e22f951f1c6c213dea): https://github.com/spacetelescope/romancal/compare/0.15.1...main
@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: https://github.com/spacetelescope/rad/issues/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