We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d9b756 commit af54218Copy full SHA for af54218
src/stcal/ramp_fitting/utils.py
@@ -155,10 +155,10 @@ def dq_compress_final(dq_int, ramp_data):
155
not_dnu = np.uint32(~dnu)
156
final_dq = np.bitwise_and(final_dq, not_dnu)
157
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)
+ # If all integrations are DO_NOT_USE, then set DO_NOT_USE.
+ set_if_total_integ(final_dq, dq_int, dnu, dnu)
160
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)
+ # If all integrations have SATURATED, then set SATURATED.
+ set_if_total_integ(final_dq, dq_int, sat, sat)
163
164
return final_dq
0 commit comments