diff --git a/jwst/resample/resample_utils.py b/jwst/resample/resample_utils.py index da917d7e41..ded0229789 100644 --- a/jwst/resample/resample_utils.py +++ b/jwst/resample/resample_utils.py @@ -163,14 +163,8 @@ def reproject(wcs1, wcs2): """ try: - # Here we want to use the WCS API functions so that a Sliced WCS - # will work as well. However, the API functions do not accept - # keyword arguments and `with_bounding_box=False` cannot be passsed. - # We delete the bounding box on a copy of the WCS - yes, inefficient. forward_transform = wcs1.pixel_to_world_values - wcs_no_bbox = deepcopy(wcs2) - wcs_no_bbox.bounding_box = None - backward_transform = wcs_no_bbox.world_to_pixel_values + backward_transform = wcs2.world_to_pixel_values except AttributeError as err: raise TypeError("Input should be a WCS") from err diff --git a/pyproject.toml b/pyproject.toml index 12c5996d16..5892178d44 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ dependencies = [ "scikit-image>=0.20.0", "scipy>=1.14.1", "spherical-geometry>=1.2.22", - "stcal @ git+https://github.com/spacetelescope/stcal.git@main", + "stcal @ git+https://github.com/mcara/stcal.git@fix-bbox-shift-make-wcs", "stdatamodels @ git+https://github.com/spacetelescope/stdatamodels.git@main", "stpipe @ git+https://github.com/spacetelescope/stpipe.git@main", "stsci.imagestats>=1.6.3",