-
Notifications
You must be signed in to change notification settings - Fork 12
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
da.mean() is dropping pint units #257
Comments
Thanks for the report. That warning occurs if Which version of Otherwise try in an environment with In other words, I think this is an issue within |
Thanks, it was using pint=0.23. I followed your suggestion and started with a fresh Conda environment using python=3.11 and it is good to go now. |
|
I'm relatively new to xarray and pint, but the example isn't working as on the web page:
Running this sample locally gives this warning:
Here the .mean() function is stripping the quantified pint units (unlike the example web page). The values are clearly in the degC range, so dequantify() has been called under the hood, but basic DataArray functions like mean() shouldn't be dropping the pint units.
The text was updated successfully, but these errors were encountered: