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

Deprecated NumPy aliases for float and int causing errors in Python #687

Closed
mauzey1 opened this issue Jan 5, 2023 · 0 comments · Fixed by #689
Closed

Deprecated NumPy aliases for float and int causing errors in Python #687

mauzey1 opened this issue Jan 5, 2023 · 0 comments · Fixed by #689

Comments

@mauzey1
Copy link
Collaborator

mauzey1 commented Jan 5, 2023

I encountered errors with Python tests related to updates in NumPy.

AttributeError: module 'numpy' has no attribute 'float'. Did you mean: 'cfloat'?

This is due to deprecated aliases for float and int in NumPy being removed in the latest version (v1.24).

According to the NumPy 1.20.0 release notes, replacing the aliases numpy.int and numpy.float with int and float respectively will work identically.

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 a pull request may close this issue.

1 participant