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

replace items removed from numpy namespace #248

Merged
merged 4 commits into from
Aug 1, 2024
Merged

replace items removed from numpy namespace #248

merged 4 commits into from
Aug 1, 2024

Conversation

mmckerns
Copy link
Member

@mmckerns mmckerns commented Aug 1, 2024

Summary

numpy.asfarray has been deprecated and removed. replace it with numpy.asarray of dtype='float64'
similarly, for Inf, NaN, and float_. Also, array.ptp has been removed.
See: https://numpy.org/devdocs/numpy_2_0_migration_guide.html

Checklist

Documentation and Tests

  • Artifacts produced with the main branch work as expected under this PR.

@mmckerns mmckerns added this to the mystic-0.4.3 milestone Aug 1, 2024
@mmckerns mmckerns changed the title replace asfarray with asarray of float64 replace items removed from numpy namespace Aug 1, 2024
@mmckerns mmckerns merged commit 82931b8 into master Aug 1, 2024
4 checks passed
@mmckerns mmckerns deleted the asfarray branch August 1, 2024 23:47
@mmckerns mmckerns restored the asfarray branch August 1, 2024 23:47
@mmckerns mmckerns deleted the asfarray branch August 1, 2024 23:48
shinnar added a commit to IBM/lale that referenced this pull request Aug 6, 2024
the latest release of mystic does not yet support numpy>=2.0.
At least one of the issues has been fixed in master: uqfoundation/mystic#248
and there is an issue for completing the migration: uqfoundation/mystic#249

This addresses #1375

Signed-off-by: Avi Shinnar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant