From b0118d75c3fbec1048b0c1cff748671578b96b46 Mon Sep 17 00:00:00 2001 From: Brian Cherinka Date: Wed, 17 Aug 2022 17:02:47 -0400 Subject: [PATCH] adding missing np int fix --- python/marvin/utils/general/maskbit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/marvin/utils/general/maskbit.py b/python/marvin/utils/general/maskbit.py index edb4c304f..a427e6b41 100644 --- a/python/marvin/utils/general/maskbit.py +++ b/python/marvin/utils/general/maskbit.py @@ -400,6 +400,6 @@ def get_mask(self, labels, mask=None, dtype=int): mask = mask if mask is not None else self.mask if len(bits) == 0: - return np.zeros(mask.shape, dtype=np.int) + return np.zeros(mask.shape, dtype=int) return np.sum([mask & 2**bit for bit in bits], axis=0).astype(dtype)