From c0b7f6f0a8ecc60d504496fb53c0f0bce45d0d89 Mon Sep 17 00:00:00 2001 From: Eddie Schlafly Date: Tue, 14 Nov 2023 16:07:00 -0500 Subject: [PATCH] Update romancal/ramp_fitting/ramp_fit_step.py Co-authored-by: William Jamieson --- romancal/ramp_fitting/ramp_fit_step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/romancal/ramp_fitting/ramp_fit_step.py b/romancal/ramp_fitting/ramp_fit_step.py index 3bdc796e2..4ec72366e 100644 --- a/romancal/ramp_fitting/ramp_fit_step.py +++ b/romancal/ramp_fitting/ramp_fit_step.py @@ -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