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

TST: handle a deprecation warning from numpy 1.25 #294

Merged

Conversation

neutrinoceros
Copy link
Collaborator

Avoid the following warning (and associated future breakage)

DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
  Dth[i]=r.integrate(x[i])

@glesur glesur merged commit f68a652 into idefix-code:develop Nov 7, 2024
13 checks passed
@neutrinoceros neutrinoceros deleted the rfc_numpy_single_elem_broadcast branch November 7, 2024 22:57
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.

2 participants