Skip to content

Commit

Permalink
Fix for roman numpy 2 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Oct 10, 2024
1 parent 4a466ba commit 616fefb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/stcal/saturation/saturation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 616fefb

Please sign in to comment.