Skip to content

Commit

Permalink
Update sregion at the end of TweakRegStep (#8158)
Browse files Browse the repository at this point in the history
Co-authored-by: Howard Bushouse <[email protected]>
  • Loading branch information
izkgao and hbushouse authored Jan 12, 2024
1 parent 5a69891 commit f23d4d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ extract_1d
- Fixed a bug in the calling of optional MIRI MRS 1d residual fringe
correction that could cause defringing to fail in some cases. [#8180]

tweakreg
--------

- Update sregion after WCS corrections are applied. [#8158]


1.13.3 (01-05-2024)
===================
Expand Down
3 changes: 2 additions & 1 deletion jwst/tweakreg/tweakreg_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# LOCAL
from ..stpipe import Step
from ..assign_wcs.util import update_fits_wcsinfo
from ..assign_wcs.util import update_fits_wcsinfo, update_s_region_imaging
from . import astrometric_utils as amutils
from . tweakreg_catalog import make_tweakreg_catalog

Expand Down Expand Up @@ -473,6 +473,7 @@ def process(self, input):
imcat.wcs.name = "FIT-LVL3-{}".format(self.abs_refcat)

image_model.meta.wcs = imcat.wcs
update_s_region_imaging(image_model)

# Also update FITS representation in input exposures for
# subsequent reprocessing by the end-user.
Expand Down

0 comments on commit f23d4d9

Please sign in to comment.