Skip to content

Removed np.float_ [UNTESTED] - #68

Open
KasperThystrup wants to merge 1 commit into
phac-nml:masterfrom
KasperThystrup:patch-1
Open

Removed np.float_ [UNTESTED]#68
KasperThystrup wants to merge 1 commit into
phac-nml:masterfrom
KasperThystrup:patch-1

Conversation

@KasperThystrup

Copy link
Copy Markdown

On some systems, sistr_cmd installed through conda/micromamba yields this error occurs:

.local/lib/python3.12/site-packages/numpy/init.py", line 778, in getattr
raise AttributeError(
AttributeError: np.float_ was removed in the NumPy 2.0 release. Use np.float64 instead.

This is despite creating environment with NumPy < 2.0 (encountered with 1.26)

would np.float64 catch all relevant instances if removing np.float_?

On numpy2 and greate np.float_ leads to an attribute error. Instead np.float64 is recommended, since it allready exists, it should be sufficient to remove the deprecated np object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant