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 authored Sep 5, 2024
1 parent 1be3367 commit c191741
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 c191741

Please sign in to comment.