-
-
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
assert_equal and dask #3350
Comments
Here's a slightly simpler case:
|
Interestingly, it looks like the difference comes down to whether we chunk DataArrays or Datasets. The former produces graphs with fixed (reproducible) keys, the later doesn't:
But clearly this should work either way. The size zero dimension is a give-away that the problem has something to do with dask's |
I think the size 0 results from
We were specifying a name for the chunked array in |
MCVE Code Sample
Example 1
I get
Example 2
The relevant xarray line in the previous traceback is
flag_array = (arr1 == arr2) | (isnull(arr1) & isnull(arr2))
, so I triedProblem Description
I don't know what's going on here. I expect assert_equal should return True for all these examples.
Our test for
isnull
with dask always callsload
before comparing:Output of
xr.show_versions()
xarray master & dask 2.3.0
xarray: 0.13.0+13.g6ece6a1c
pandas: 0.25.1
numpy: 1.17.2
scipy: 1.3.1
netCDF4: 1.5.1.2
pydap: None
h5netcdf: 0.7.4
h5py: 2.9.0
Nio: None
zarr: None
cftime: 1.0.3.4
nc_time_axis: None
PseudoNetCDF: None
rasterio: None
cfgrib: 0.9.7.1
iris: None
bottleneck: 1.2.1
dask: 2.3.0
distributed: 2.3.2
matplotlib: 3.1.1
cartopy: 0.17.0
seaborn: 0.9.0
numbagg: None
setuptools: 41.2.0
pip: 19.2.3
conda: 4.7.11
pytest: 5.1.2
IPython: 7.8.0
sphinx: 2.2.0
The text was updated successfully, but these errors were encountered: