Skip to content

Commit

Permalink
Skipping dilution step if dilution is 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Brandt authored and Timothy Brandt committed Dec 23, 2024
1 parent 3864c83 commit 2cc2169
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/stcal/saturation/saturation.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ def flag_saturated_pixels(
else:
dilution_factor = 1

# No point in this step if the dilution factor is 1. In
# that case, there is no way that we would have missed
# saturation before but flag it now, since the threshold
# would be the same.

if dilution_factor == 1:
continue

# Find where this plane looks like it might saturate given
# the dilution factor, *and* this group did not already get
# flagged as saturated or do not use, *and* the next group
Expand Down

0 comments on commit 2cc2169

Please sign in to comment.