Skip to content

Commit

Permalink
Undo deprecation of niriss_bounding_box - separate issue
Browse files Browse the repository at this point in the history
  • Loading branch information
emolter committed Mar 7, 2025
1 parent 6c589bc commit 673ad54
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions jwst/assign_wcs/niriss.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging
import warnings

import asdf
from astropy import coordinates as coord
Expand Down Expand Up @@ -120,10 +119,6 @@ def niriss_bounding_box(input_model):
"""
Create a bounding box for the NIRISS model.
.. deprecated:: 1.17.2
:py:func:`niriss_bounding_box` has been deprecated and will be removed
in a future release.
Parameters
----------
input_model : JwstDataModel
Expand All @@ -134,13 +129,6 @@ def niriss_bounding_box(input_model):
CompoundBoundingBox
The bounding box for the NIRISS model.
"""
warnings.warn(
"'niriss_bounding_bo()' has been deprecated since 1.17.2 and "
"will be removed in a future release. ",
DeprecationWarning,
stacklevel=2,
)

bbox = {(order,): _niriss_order_bounding_box(input_model, order) for order in [1, 2, 3]}

Check warning on line 132 in jwst/assign_wcs/niriss.py

View check run for this annotation

Codecov / codecov/patch

jwst/assign_wcs/niriss.py#L132

Added line #L132 was not covered by tests
model = input_model.meta.wcs.forward_transform
return CompoundBoundingBox.validate(

Check warning on line 134 in jwst/assign_wcs/niriss.py

View check run for this annotation

Codecov / codecov/patch

jwst/assign_wcs/niriss.py#L134

Added line #L134 was not covered by tests
Expand Down

0 comments on commit 673ad54

Please sign in to comment.