Skip to content

Commit

Permalink
adding missing np int fix
Browse files Browse the repository at this point in the history
  • Loading branch information
havok2063 committed Aug 17, 2022
1 parent e8775be commit b0118d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/marvin/utils/general/maskbit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit b0118d7

Please sign in to comment.