Skip to content

Commit

Permalink
fix-regtest
Browse files Browse the repository at this point in the history
  • Loading branch information
mcara committed Feb 12, 2025
1 parent ce4a4b3 commit 6f80991
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions jwst/resample/resample_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from stdatamodels.jwst import datamodels

from jwst.assign_wcs.util import compute_scale, wrap_ra
from jwst.assign_wcs.util import compute_scale, wcs_bbox_from_shape, wrap_ra
from jwst.resample import resample_utils
from jwst.resample.resample import ResampleImage
from jwst.datamodels import ModelLibrary
Expand Down Expand Up @@ -512,8 +512,7 @@ def build_nirspec_output_wcs(self, input_models, refmodel=None,

# Compute bounding box and output array shape.
data_size = (ny, n_lam)
bounding_box = resample_utils.wcs_bbox_from_shape(data_size)
output_wcs.bounding_box = bounding_box
output_wcs.bounding_box = wcs_bbox_from_shape(data_size)
output_wcs.array_shape = data_size

return output_wcs
Expand Down Expand Up @@ -795,7 +794,7 @@ def build_interpolated_output_wcs(self, input_models, pixel_scale_ratio=1.0):
# turn the size into a numpy shape in (y, x) order
output_wcs.array_shape = output_array_size[::-1]
output_wcs.pixel_shape = output_array_size
bounding_box = resample_utils.wcs_bbox_from_shape(output_array_size[::-1])
bounding_box = wcs_bbox_from_shape(output_array_size[::-1])
output_wcs.bounding_box = bounding_box

return output_wcs
Expand Down Expand Up @@ -904,7 +903,7 @@ def build_nirspec_lamp_output_wcs(self, input_models, pixel_scale_ratio):
# turn the size into a numpy shape in (y, x) order
output_wcs.array_shape = output_array_size[::-1]
output_wcs.pixel_shape = output_array_size
bounding_box = resample_utils.wcs_bbox_from_shape(output_array_size[::-1])
bounding_box = wcs_bbox_from_shape(output_array_size[::-1])
output_wcs.bounding_box = bounding_box

return output_wcs
Expand Down

0 comments on commit 6f80991

Please sign in to comment.