Skip to content

Commit

Permalink
remove warning filter
Browse files Browse the repository at this point in the history
Tests were unable to produce a situation
where the filtered warning could be produced.
The goal was to add a more specific filter
(one that uses a message). If the warning
can be reproduced the filter with a message
can be re-added. It's possible this warning
is no longer produced and so this commit
removes the filter.
  • Loading branch information
braingram committed Jul 26, 2024
1 parent b9d1bdc commit 4564878
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/stcal/outlier_detection/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4564878

Please sign in to comment.