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 dtype problem #783

Closed
liuzh1206 opened this issue Jul 20, 2023 · 1 comment
Closed

numpy dtype problem #783

liuzh1206 opened this issue Jul 20, 2023 · 1 comment

Comments

@liuzh1206
Copy link

liuzh1206 commented Jul 20, 2023

The new version of numpy no longer supports the float and complex data types. When I use it, I get an error message and the following prompt: The program can run normally after changing np.float and np.complex to np.float64 and np.complex128 in the code.

`np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
np.float was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
@utf
Copy link
Member

utf commented Aug 16, 2023

Thanks for noticing this. It should be fixed now. I will push a new version soon.

@utf utf closed this as completed Aug 16, 2023
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

No branches or pull requests

2 participants