Skip to content

Commit

Permalink
Update romancal/ramp_fitting/ramp_fit_step.py
Browse files Browse the repository at this point in the history
Co-authored-by: William Jamieson <[email protected]>
  • Loading branch information
schlafly and WilliamJamieson authored Nov 14, 2023
1 parent 29c9bb8 commit c0b7f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion romancal/ramp_fitting/ramp_fit_step.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,6 @@ def get_pixeldq_flags(groupdq, pixeldq, slopes, err, gain):
m |= ~np.isfinite(slopes) | (err <= 0)
outpixeldq |= (m * dqflags.pixel["DO_NOT_USE"]).astype(np.uint32)
m = (gain < 0) | ~np.isfinite(gain)
outpixeldq |= (m * dqflags.pixel["NO_GAIN_VALUE"]).astype('u4')
outpixeldq |= (m * dqflags.pixel["NO_GAIN_VALUE"]).astype(np.uint32)

return outpixeldq

0 comments on commit c0b7f6f

Please sign in to comment.