-
-
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
NaN-sized chunks #2801
Comments
Currently, xarray's indexing does not work for dask-indexers. xarray/xarray/core/variable.py Lines 555 to 560 in c33dab2
but I am not sure if it is the only one thing to prevent this.
I am not sure whether it is our issue or that in upstream. a.data[(a < 2).data] does not clash, indicating dask can not take xr.DataArray as an index (note, |
Yes, agreed.
The simple answer is to not allow undefined indices on NaN sized dimensions for now ("hard crash"). I don't think silently dropping indexes is a good idea. Long term (after #1603 is complete), I can imagine supporting some sort of "lazy index" class. |
It would be nice to have support for NaN-sized dask chunks, e.g.
x[x > 2]
.There are two problems:
x[x > 2]
silently resolves the dask graph. It definitely shouldn't. There needs to be some discussion on what needs to happen to indices on the NaN-sized dimension; I can think of 3 options:The above design decision is anyway for when there is an index; dims without indices should just work.
I didn't investigate but I suspect it should be trivial to fix. I'm not sure why there is a check at all? Any such health check should be in dask only IMHO.
The text was updated successfully, but these errors were encountered: