-
Notifications
You must be signed in to change notification settings - Fork 9
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
Tests fail because np.int
and np.float
were deprecated
#32
Comments
Thanks for raising this issue. There is currently a commit to fix this issue in the develop branch, but I haven't had the time to start/merge a pull request into the main branch. I believe that everything that requires a specific precision uses the specific numpy types (e.g. np.int8/np.float32) so it should be fine to use python's built in types for np.int and np.float to resolve this issue. As far as I'm aware, this should not be an issue on numpy 1.21.2, I have not updated to a newer numpy version as there are some installation issues that I have yet to overcome. |
Thanks for the quick reply. I'm sorry I missed the fix in the develop branch, that surely invalidates this issue. As for the numpy installation, I had relied on a SO thread that maybe wasn't completely correct. According to the official release notes there should be support for python 3.10. The problem turns out to be mainly due to my specific Windows MinGW setup with an older gcc version ( For the record, the error when trying to install numpy 1.21.2 with pip is:
Thanks |
Hello,
Running the tests in
tests/
produces a few errors like the following:For both
np.int
andnp.float
, that were deprecated since numpy1.20.0
(see https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations ).Changing all references to python's built-in
int
andfloat
solves the errors, but while being previously aliased bynp.int
andnp.float
, perhaps a lower level revision of the dtypes is necessary to make sure they are numerically appropriate?I'm using conda 23.9.0, python 3.10.13, and numpy 1.26.2 (can't install version 1.21.2 from the requirements in python 3.10).
Thank you
The text was updated successfully, but these errors were encountered: