Skip to content

Commit

Permalink
Merge pull request #819 from neutrinoceros/hotfix_818
Browse files Browse the repository at this point in the history
Avoid using np.maximum_sctype (dropped in NumPy 2)
  • Loading branch information
mwcraig authored Apr 9, 2024
2 parents 4bdb086 + d09866f commit 9d32553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccdproc/extern/bitfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
# 1.1.1 (30-January-2018) - Improved filtering of high bits in flags.
#
INT_TYPE = (int, long,) if sys.version_info < (3,) else (int,)
MAX_UINT_TYPE = np.maximum_sctype(np.uint)
MAX_UINT_TYPE = np.uint64
SUPPORTED_FLAGS = int(np.bitwise_not(
0, dtype=MAX_UINT_TYPE, casting='unsafe'
))
Expand Down

0 comments on commit 9d32553

Please sign in to comment.