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

DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. #1671

Closed
zssherman opened this issue Oct 23, 2024 · 2 comments · Fixed by #1673
Assignees

Comments

@zssherman
Copy link
Collaborator

zssherman commented Oct 23, 2024

  • Py-ART version: Current
  • Python version: 3.12
  • Operating System: All

Description

/home/runner/work/pyart/pyart/pyart/map/gates_to_grid.py:118: 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.)

I think I have a solution for some of these, however would we want a check for when the array has multiple values? I think in rare cases we do for mobile radars and I believe we take a mean in the gridding code.

@mgrover1
Copy link
Collaborator

Good to close with #1673 ?

@zssherman
Copy link
Collaborator Author

Yep! Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants