Skip to content

TST: handle a deprecation warning from numpy 1.25#294

Merged
glesur merged 1 commit intoidefix-code:developfrom
neutrinoceros:rfc_numpy_single_elem_broadcast
Nov 7, 2024
Merged

TST: handle a deprecation warning from numpy 1.25#294
glesur merged 1 commit intoidefix-code:developfrom
neutrinoceros:rfc_numpy_single_elem_broadcast

Conversation

@neutrinoceros
Copy link
Copy Markdown
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
@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