Skip to content

Commit

Permalink
jwst wcs always has bounding_box
Browse files Browse the repository at this point in the history
  • Loading branch information
mcara committed Dec 19, 2024
1 parent 548955f commit 510f631
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions jwst/resample/resample_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,8 @@ def calc_gwcs_pixmap(in_wcs, out_wcs, shape=None):

grid = gwcs.wcstools.grid_from_bounding_box(bb)

if hasattr(out_wcs, "bounding_box"):
orig_bbox = getattr(out_wcs, "bounding_box", None)
out_wcs.bounding_box = None
else:
orig_bbox = None
orig_bbox = out_wcs.bounding_box
out_wcs.bounding_box = None
try:
pixmap = np.dstack(reproject(in_wcs, out_wcs)(grid[0], grid[1]))
finally:
Expand Down

0 comments on commit 510f631

Please sign in to comment.