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

Replaced numpy.asfarray with numpy.asarray using the proper dtype. #169

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

SergejKr
Copy link
Contributor

I executed the unit tests with python 3.9 and 3.12. Everything was okay.

@tommyod
Copy link
Owner

tommyod commented Aug 30, 2024

Can you explain why this is needed?

Some tests are failing. Please take a look

@SergejKr
Copy link
Contributor Author

SergejKr commented Aug 30, 2024

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.

@tommyod
Copy link
Owner

tommyod commented Aug 30, 2024

Great, thanks!

@SergejKr
Copy link
Contributor Author

SergejKr commented Sep 2, 2024

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
@SergejKr
Copy link
Contributor Author

SergejKr commented Sep 3, 2024

Changed dtype from int32 to long. Hope it solves also the issues on macOS and Ubuntu

@SergejKr
Copy link
Contributor Author

SergejKr commented Sep 6, 2024

@tommyod all checks have passed. Do you need anything else from me? Can you please merge in the near future.

@tommyod tommyod merged commit 3df3d05 into tommyod:master Sep 6, 2024
15 checks passed
@tommyod
Copy link
Owner

tommyod commented Sep 6, 2024

Merged! Thanks for the contribution @SergejKr !

tommyod added a commit that referenced this pull request Sep 6, 2024
* 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]>
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.

2 participants