Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loosen saturation test #1571

Merged
merged 6 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading