-
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
base: main
Are you sure you want to change the base?
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).
@@ -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).
@@ -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), |
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