Skip to content

Commit af54218

Browse files
committed
Fix flagging in Python code
1 parent 7d9b756 commit af54218

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/stcal/ramp_fitting/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ def dq_compress_final(dq_int, ramp_data):
155155
not_dnu = np.uint32(~dnu)
156156
final_dq = np.bitwise_and(final_dq, not_dnu)
157157

158-
# If all integrations are DO_NOT_USE or SATURATED, then set DO_NOT_USE.
159-
set_if_total_integ(final_dq, dq_int, dnu | sat, dnu)
158+
# If all integrations are DO_NOT_USE, then set DO_NOT_USE.
159+
set_if_total_integ(final_dq, dq_int, dnu, dnu)
160160

161-
# If all integrations have SATURATED, then set DO_NOT_USE and SATURATED.
162-
set_if_total_integ(final_dq, dq_int, sat, dnu | sat)
161+
# If all integrations have SATURATED, then set SATURATED.
162+
set_if_total_integ(final_dq, dq_int, sat, sat)
163163

164164
return final_dq

0 commit comments

Comments
 (0)