Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Numpy 2.0.0rc1 #818

Closed
astrofrog opened this issue Apr 5, 2024 · 5 comments · Fixed by #819
Closed

Error with Numpy 2.0.0rc1 #818

astrofrog opened this issue Apr 5, 2024 · 5 comments · Fixed by #819
Labels

Comments

@astrofrog
Copy link
Member

I'm running into the following error with Numpy 2.0.0rc1:

    from .extern.bitfield import bitfield_to_boolean_mask as _bitfield_to_boolean_mask
.tox/py311-ccdproc/lib/python3.11/site-packages/ccdproc/extern/bitfield.py:56: in <module>
    MAX_UINT_TYPE = np.maximum_sctype(np.uint)
.tox/py311-ccdproc/lib/python3.11/site-packages/numpy/__init__.py:397: in __getattr__
    raise AttributeError(
E   AttributeError: `np.maximum_sctype` was removed in the NumPy 2.0 release. Use a specific dtype instead. You should avoid relying on any implicit mechanism and select the largest dtype of a kind explicitly in the code.
@astrofrog astrofrog added the bug label Apr 5, 2024
@mwcraig
Copy link
Member

mwcraig commented Apr 5, 2024

Thanks for reporting this -- I'll get it fixed next week.

@neutrinoceros
Copy link
Contributor

@mwcraig we need a new release before numpy 2 comes out and this starts affecting users. Can you give us an estimation of when it could happen ? Thanks !

@mwcraig
Copy link
Member

mwcraig commented Apr 16, 2024

@neutrinoceros -- I'll do my best to get it out today.....

@mwcraig
Copy link
Member

mwcraig commented May 3, 2024

@neutrinoceros -- apologies that "today" lasted two weeks 😬...I just released 2.4.2 on pypi

@neutrinoceros
Copy link
Contributor

No worries at all, and thanks for the ping !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants