-
Notifications
You must be signed in to change notification settings - Fork 92
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
Replaced numpy.asfarray with numpy.asarray using the proper dtype. #169
Conversation
Can you explain why this is needed? Some tests are failing. Please take a look |
Hi. The asfarray is deprecated in numpy >= 2. To use KDEpy with numpy >= 2 it must be replaced with asarray. It corresponds to the issue #168. Why the test fail, I dont know though. I will have a look. |
Great, thanks! |
I Solved the issues for the windows builds. I dont know why it is not running for ubuntu and macOS. |
Changed doctest to use assert
Changed dtype from int32 to long. Hope it solves also the issues on macOS and Ubuntu |
@tommyod all checks have passed. Do you need anything else from me? Can you please merge in the near future. |
Merged! Thanks for the contribution @SergejKr ! |
* Fix Numpy and Scipy deprecation warnings (#163) * fix numpy deprecation (product to prod) * fix numpy deprecation (brentq) * fix numpy deprecation (quad/nquad) * changes to meet PEP-8 * Fix flake8 and black formatting errors * Bump version to 1.1.9 (#164) Co-authored-by: tommyod <tommy.odland> * Update build.yml with pypi API token (#165) * Update build.yml with pypi API token * Remove push condition * Replaced numpy.asfarray with numpy.asarray using the proper dtype. (#169) * Replaced numpy.asfarray with numpy.asarray using the proper dtype. * Newer version of numpy return np.True_ instead of True. Changed this in two doctests. * Changed to correct dtype from int32 to long. Changed doctest to use assert --------- Co-authored-by: skrylow <[email protected]> * Version 1.1.10 with numpy 2.0 support (#171) --------- Co-authored-by: yanbomb <[email protected]> Co-authored-by: SergejKr <[email protected]> Co-authored-by: skrylow <[email protected]>
I executed the unit tests with python 3.9 and 3.12. Everything was okay.