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

NumPy 2.0 #215

Closed
SimonHeybrock opened this issue Jun 17, 2024 · 0 comments · Fixed by #216
Closed

NumPy 2.0 #215

SimonHeybrock opened this issue Jun 17, 2024 · 0 comments · Fixed by #216
Assignees

Comments

@SimonHeybrock
Copy link
Member

SimonHeybrock commented Jun 17, 2024

Seeing errors like

.tox/py310/lib/python3.10/site-packages/scippnexus/__init__.py:13: in <module>
    from .base import (
.tox/py310/lib/python3.10/site-packages/scippnexus/base.py:18: in <module>
    from ._common import to_child_select
.tox/py310/lib/python3.10/site-packages/scippnexus/_common.py:15: in <module>
    scaling_factor: Union[float, np.float_] = None,
.tox/py310/lib/python3.10/site-packages/numpy/__init__.py:397: in __getattr__
    raise AttributeError(
E   AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.. Did you mean: 'float16'?

with Numpy 2.0.

I had to add an upper bound in the following packages, make sure to remove when fixing this:

  • ESSsans
  • ESSdiffraction
  • ESSnmx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants