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 'asfarray' with 'asarray' for numpy 2.0 compatibility #25

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

greschd
Copy link
Contributor

@greschd greschd commented Jun 24, 2024

Replace the use of numpy.asfarray (removed in numpy 2.0) with numpy.asarray with the dtype=float argument.

The three example notebooks and example.py script run to completion with this change, but I did not validate their results.

Fixes #24

Replace the use of 'numpy.asfarray' (removed in numpy 2.0) with
'numpy.asarray' with the 'dtype=float' argument.
@Gunnstein Gunnstein merged commit 951929f into Gunnstein:master Jun 28, 2024
@greschd greschd deleted the maint/numpy_2_compatibility branch June 28, 2024 17:03
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.

Incompatible with numpy 2.0
2 participants