Skip to content

Commit

Permalink
Loosen saturation test (#1571)
Browse files Browse the repository at this point in the history
Loosen saturation test.
  • Loading branch information
schlafly authored Dec 20, 2024
1 parent 77dee18 commit efcc040
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/1571.saturation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Loosen saturation unit test to allow DO_NOT_USE
6 changes: 5 additions & 1 deletion romancal/saturation/tests/test_saturation.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ def test_read_pattern_saturation_flagging(setup_wfi_datamodels):
output = flag_saturation(ramp, satmap)

# Make sure that groups after the third get flagged
assert np.all(output.groupdq[2:, 5, 5] == group.SATURATED)
# To accommodate https://github.com/spacetelescope/stcal/pull/321
# this test was loosed to be SATURATED | DO_NOT_USE
assert np.all(
(output.groupdq[2:, 5, 5] & (group.SATURATED | group.DO_NOT_USE)) != 0
)


def test_ad_floor_flagging(setup_wfi_datamodels):
Expand Down

0 comments on commit efcc040

Please sign in to comment.