diff --git a/jwst/assign_wcs/niriss.py b/jwst/assign_wcs/niriss.py index 69698ffad6c..7cf8b8e70fd 100644 --- a/jwst/assign_wcs/niriss.py +++ b/jwst/assign_wcs/niriss.py @@ -6,7 +6,6 @@ from astropy import units as u from astropy.modeling import bind_bounding_box from astropy.modeling.models import Const1D, Mapping, Identity, Shift -from astropy.modeling.bounding_box import CompoundBoundingBox import gwcs.coordinate_frames as cf from gwcs import wcs @@ -114,27 +113,6 @@ def _niriss_order_bounding_box(input_model, order): ) -def niriss_bounding_box(input_model): - """ - Create a bounding box for the NIRISS model. - - Parameters - ---------- - input_model : JwstDataModel - The input datamodel. - - Returns - ------- - CompoundBoundingBox - The bounding box for the NIRISS model. - """ - bbox = {(order,): _niriss_order_bounding_box(input_model, order) for order in [1, 2, 3]} - model = input_model.meta.wcs.forward_transform - return CompoundBoundingBox.validate( - model, bbox, slice_args=[("spectral_order", True)], order="F" - ) - - def niriss_soss(input_model, reference_files): """ Create the WCS pipeline for NIRISS SOSS data.