From 616fefb732d3985fc9d95f931b388f802acb3161 Mon Sep 17 00:00:00 2001 From: William Jamieson Date: Thu, 10 Oct 2024 10:03:27 -0400 Subject: [PATCH] Fix for roman numpy 2 issue --- src/stcal/saturation/saturation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stcal/saturation/saturation.py b/src/stcal/saturation/saturation.py index a2797470a..c607c64a5 100644 --- a/src/stcal/saturation/saturation.py +++ b/src/stcal/saturation/saturation.py @@ -63,10 +63,10 @@ def flag_saturated_pixels( updated pixel dq array """ nints, ngroups, nrows, ncols = data.shape - dnu = dqflags["DO_NOT_USE"] - saturated = dqflags["SATURATED"] - ad_floor = dqflags["AD_FLOOR"] - no_sat_check = dqflags["NO_SAT_CHECK"] + dnu = int(dqflags["DO_NOT_USE"]) + saturated = int(dqflags["SATURATED"]) + ad_floor = int(dqflags["AD_FLOOR"]) + no_sat_check = int(dqflags["NO_SAT_CHECK"]) # Identify pixels flagged in reference file as NO_SAT_CHECK, no_sat_check_mask = np.bitwise_and(sat_dq, no_sat_check) == no_sat_check