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

BUG: casting single-element arrays to scalar types is deprecated in future numpy #4421

Closed
neutrinoceros opened this issue Apr 21, 2023 · 1 comment · Fixed by #4422
Closed

Comments

@neutrinoceros
Copy link
Member

Bug report

Bug summary

numpy/numpy#10615 was just merged, which breaks a bunch of tests: https://github.com/yt-project/yt/actions/runs/4761003544/jobs/8461853842

Some of the errors are indirectly triggered from matplotlib (I'll report those upstream), but others can be adressed in yt itself.
I fear that dealing with this deprecation may open the door to subtle bugs, so I'll also voice these concerns to numpy dev directly.

@neutrinoceros
Copy link
Member Author

Turns out using the .item() method on single element arrays is a proper fix that I don't have an issue with, so, I don't need to revive the discussion with numpy dev after all.

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 a pull request may close this issue.

1 participant