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 v2 prep: Use -np.inf instead of np.NINF #184

Merged
merged 1 commit into from
May 20, 2024

Conversation

Stedoss
Copy link
Contributor

@Stedoss Stedoss commented May 20, 2024

Noticed when setting up a new venv (it installs NumPy v2.0RC by default).

Should be compatible with v1 builds also.

File "/run/media/stedos/NVMe/Development/Personal/Circleguard/circlecore/env-linux/lib/python3.11/site-packages/numpy-2.0.0rc2-py3.11-linux-x86_64.egg/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(
AttributeError: `np.NINF` was removed in the NumPy 2.0 release. Use `-np.inf` instead.

numpy has deprecated `np.NINF` in favour of the `np.inf` constant which
can be made negative.
@tybug tybug merged commit 8eef2f7 into circleguard:master May 20, 2024
0 of 2 checks passed
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.

2 participants