-
Notifications
You must be signed in to change notification settings - Fork 415
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
storm_relative_helicity,The example code for this function cannot run #3594
Comments
It looks like the code here implements |
Numpy 1.21.2 Pint 0.20.1 |
Interesting. Works fine for me on Python 3.9.16 with NumPy 1.26.4 and pint 0.23 >>> np.min(pint.Quantity(np.array([250, 700, 1500, 3100, 5720, 7120]), "meter"))
<Quantity(250, 'meter')> Is there something keeping you from upgrading NumPy or Pint? |
I'm unable to reproduce this on my macOS machine with Python 3.9 + Pint 0.20.1 and Numpy 1.21.2 with current MetPy main. I don't think we've changed anything relevant since 1.6.2, so I'm guessing this is an issue with your environment. I would double check what versions of pint and numpy are being picked up with |
Does If those fail with I think getting rid of those would be |
What went wrong?
I copied the example code of this function, but when it runs, an error occurs. What is the problem
Operating System
Windows
Version
1.6.2
Python Version
3.9
Code to Reproduce
Errors, Traceback, and Logs
The text was updated successfully, but these errors were encountered: