-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Two strange errors in tests TestVariable using .copy() #3778
Comments
Could you list the versions of the installed packages, i.e. the output of |
Sure:
BTW, why does it report |
@keewis could it be that the wrong version of pint is installed? Should pint be added to |
I have pint 0.10.1, and 0.10 definitively changed a lot of things as also shown in #3266 (comment). |
👍 |
since Note that none of them will fail with d = np.datetime64("NaT", "ns")
v = xr.Variable(["x"], ureg.Quantity([d], ureg.m))
assert v.equals(v.copy()) # AssertionError with |
xarray/xarray/core/duck_array_ops.py Lines 74 to 81 in 52ee5df
np.isnat if dask is absent and pd.isnull if dask is present. Since dask_array_type is a tuple , hasattr will always return False .
Wrapping a |
Setup is as described in #3777.
The two failures are the following ones:
I have no idea what’s wrong here.
The text was updated successfully, but these errors were encountered: