We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
numpy.int
numpy.float
int
float
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I encountered errors with Python tests related to updates in NumPy.
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
andnumpy.float
withint
andfloat
respectively will work identically.The text was updated successfully, but these errors were encountered: