From c6f1671a13367e86129df451e163872c3edbf36c Mon Sep 17 00:00:00 2001 From: Steve Goldman <32876747+s-goldman@users.noreply.github.com> Date: Thu, 5 Sep 2024 09:46:48 -0400 Subject: [PATCH] Small update to buildmask for Numpy 2.0 (#1876) --- drizzlepac/buildmask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drizzlepac/buildmask.py b/drizzlepac/buildmask.py index 2f530d5c8..aa75fec89 100644 --- a/drizzlepac/buildmask.py +++ b/drizzlepac/buildmask.py @@ -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)