diff --git a/changes/1571.saturation.rst b/changes/1571.saturation.rst new file mode 100644 index 000000000..4f7732856 --- /dev/null +++ b/changes/1571.saturation.rst @@ -0,0 +1 @@ +Loosen saturation unit test to allow DO_NOT_USE diff --git a/romancal/saturation/tests/test_saturation.py b/romancal/saturation/tests/test_saturation.py index 6d080af45..ab3f9c28b 100644 --- a/romancal/saturation/tests/test_saturation.py +++ b/romancal/saturation/tests/test_saturation.py @@ -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):