Skip to content

Fixed deprecated np.float issue by replacing with float to ensure com…#30

Open
myousaf wants to merge 1 commit intosam-cox:masterfrom
myousaf:master
Open

Fixed deprecated np.float issue by replacing with float to ensure com…#30
myousaf wants to merge 1 commit intosam-cox:masterfrom
myousaf:master

Conversation

@myousaf
Copy link

@myousaf myousaf commented Oct 30, 2024

…patibility with latest NumPy versions.

NumPy 1.20 (release notes) deprecated numpy.float, numpy.int, and similar aliases, causing them to issue a deprecation warning

NumPy 1.24 (release notes) removed these aliases altogether, causing an error when they are used

For more details, follow the link:

https://stackoverflow.com/questions/74844262/how-can-i-solve-error-module-numpy-has-no-attribute-float-in-python

…patibility with latest NumPy versions.

NumPy 1.20 (release notes) deprecated numpy.float, numpy.int, and similar aliases, causing them to issue a deprecation warning

NumPy 1.24 (release notes) removed these aliases altogether, causing an error when they are used

For more details, follow the link:

https://stackoverflow.com/questions/74844262/how-can-i-solve-error-module-numpy-has-no-attribute-float-in-python
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