diff --git a/src/stcal/outlier_detection/utils.py b/src/stcal/outlier_detection/utils.py index de75bf6f7..7a7e00f49 100644 --- a/src/stcal/outlier_detection/utils.py +++ b/src/stcal/outlier_detection/utils.py @@ -325,10 +325,7 @@ def _reproject(x, y): flat_sky = [] for axis in sky: flat_sky.append(axis.flatten()) - # Filter out RuntimeWarnings due to computed NaNs in the WCS - with warnings.catch_warnings(): - warnings.simplefilter("ignore", RuntimeWarning) - det = backward_transform(*tuple(flat_sky)) + det = backward_transform(*tuple(flat_sky)) det_reshaped = [] for axis in det: det_reshaped.append(axis.reshape(x.shape))