-
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
Adjust crval in resample tests to get overlap with input #1567
Conversation
Thanks. Mostly for my reference, the issue is that the wfi_scas were populated at (ra, dec) = (10, 0), but the corresponding crvals were populated at (0, 0), as Mihai says. |
It looks like both of those tests are only looking at the metadata for a blended model. Would they work with the upcoming changes if EDIT: I was writing this while Eddie was reviewing. The above changes could be a follow-up PR (if suitable). |
There are different options:
|
Running the changes in this PR against Since the idea behind those tests is to check for the functionality of |
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.
I suggest we drop both crpix
and crval
.
@@ -715,7 +715,7 @@ def test_populate_mosaic_basic_single_exposure(exposure_1): | |||
rotation=0, | |||
shape=None, | |||
crpix=(0, 0), | |||
crval=(0, 0), | |||
crval=(10, 0), |
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.
Tests are still failing with crpix=(0,0)
+ crval=(10,0)
. It does work when removing crpix
alone (regardless of crval
's value).
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.
I do not see which tests are failing due to this change. Yes, removing crpix
is a different solution but it also will no longer test a specific branch in the code. I think it is important to get these tests working as is even though the tests themselves do not care how the WCS was "made".
@@ -1014,7 +1014,7 @@ def test_populate_mosaic_basic_different_observations( | |||
rotation=0, | |||
shape=None, | |||
crpix=(0, 0), | |||
crval=(0, 0), | |||
crval=(10, 0), |
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.
Tests are still failing with crpix=(0,0)
+ crval=(10,0)
. It does work when removing crpix
alone (regardless of crval
's value).
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.
@mairanteodoro Sorry for the delay. Which tests are failing?
@@ -715,7 +715,7 @@ def test_populate_mosaic_basic_single_exposure(exposure_1): | |||
rotation=0, | |||
shape=None, | |||
crpix=(0, 0), |
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.
crpix=(0, 0), |
@@ -1014,7 +1014,7 @@ def test_populate_mosaic_basic_different_observations( | |||
rotation=0, | |||
shape=None, | |||
crpix=(0, 0), |
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.
crpix=(0, 0), |
a9a7a05
to
001c238
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1567 +/- ##
===========================================
- Coverage 77.94% 28.60% -49.35%
===========================================
Files 115 112 -3
Lines 7622 7576 -46
===========================================
- Hits 5941 2167 -3774
- Misses 1681 5409 +3728 ☔ View full report in Codecov by Sentry. |
001c238
to
86310f6
Compare
Merging as this PR looks good, and the test failures are related to the ongoing unit-removal from romancal reference files. |
…)" This reverts commit c06bdec.
This PR adjusts
crval
value intest_populate_mosaic_basic_single_exposure
andtest_populate_mosaic_basic_different_observations
unit tests. The original value was 10 degrees off due to which input images do not have any overlap with output image created with custom WCS parameters. With new changes in GWCS (enabling bounding box for inverse + a fix in stcal) this would lead to tests failing.Tasks
24Q4_B15
(use the latest build if not sure)no-changelog-entry-needed
)changes/
:echo "changed something" > changes/<PR#>.<changetype>.rst
(see below for change types)docs/
pageokify_regtests
to update the truth filesnews fragment change types...
changes/<PR#>.general.rst
: infrastructure or miscellaneous changechanges/<PR#>.docs.rst
changes/<PR#>.stpipe.rst
changes/<PR#>.associations.rst
changes/<PR#>.scripts.rst
changes/<PR#>.mosaic_pipeline.rst
changes/<PR#>.patch_match.rst
steps
changes/<PR#>.dq_init.rst
changes/<PR#>.saturation.rst
changes/<PR#>.refpix.rst
changes/<PR#>.linearity.rst
changes/<PR#>.dark_current.rst
changes/<PR#>.jump_detection.rst
changes/<PR#>.ramp_fitting.rst
changes/<PR#>.assign_wcs.rst
changes/<PR#>.flatfield.rst
changes/<PR#>.photom.rst
changes/<PR#>.flux.rst
changes/<PR#>.source_detection.rst
changes/<PR#>.tweakreg.rst
changes/<PR#>.skymatch.rst
changes/<PR#>.outlier_detection.rst
changes/<PR#>.resample.rst
changes/<PR#>.source_catalog.rst