-
-
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
test failure with upstream-dev #3409
Comments
This has now spread to all tests without pinned dependencies |
conda list (py36) before and after the breakage:
|
This looks like this upstream pandas issue: pandas-dev/pandas#29053 |
It doesn't add up - the upstream ticket mentions an incompatibility with numpy 1.18. However, our failing tests are all running with numpy 1.17. |
Looking more closely at the failing tests, there are actually two problems. |
Narrowed down: >>> import numpy as np
>>> a = np.array(['1999-12-15', 'NaT'], dtype='M8[ns]')
>>> np.min(a) Output: triggered by: xarray/xarray/core/duck_array_ops.py Line 372 in 0f7ab0e
|
I think we have our own version of the same issue that pandas had. |
Same problem: a = xarray.DataArray(['1999-12-15', 'NaT']).astype('M8[ns]')
a.min(skipna=False) # np 1.17: 1999-12-15; np 1.18: NaT
a.min(skipna=True) # np 1.17: crashes; np 1.18: crashes |
Looks like numpy will fix this: numpy/numpy#14841 |
@dcherian I didn't try running the PR code, but I don't think so? Does anybody have the time to test it? |
Sigh yes you're right |
Unfortunately this does not seem to make |
* Closes #3409 * Unpin versions * Rewrite unit test for clarity about its real scope * mean() on dask * Trivial * duck_array_ops should never receive xarray.Variable
https://dev.azure.com/xarray/xarray/_build/results?buildId=1101&view=logs
The text was updated successfully, but these errors were encountered: