Skip to content

Commit

Permalink
Small update to buildmask for Numpy 2.0 (#1876)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-goldman committed Oct 29, 2024
1 parent 3c7a214 commit c6f1671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drizzlepac/buildmask.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def buildDQMasks(imageObjectList,configObj):

def buildMask(dqarr, bitvalue):
""" Builds a bit-mask from an input DQ array and a bitvalue flag """
return bitfield_to_boolean_mask(dqarr.astype(np.int16), bitvalue, good_mask_value=1,
return bitfield_to_boolean_mask(dqarr.astype(np.uint16), ignore_flags=bitvalue, good_mask_value=1,
dtype=np.uint8)


Expand Down

0 comments on commit c6f1671

Please sign in to comment.