-
Notifications
You must be signed in to change notification settings - Fork 33
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
Indexing with a boolean dask array is not allowed... #332
Comments
FYI the current Oceanography image on Sciserver has |
More context on the erro (see maskH = _xr.ones_like(ds["YG"])
maskH = maskH.where( _np.logical_and(ds["YG"] >= YRange[0], ds["YG"] <= YRange[-1]), 0)
maskH = maskH.assign_coords(Yp1=_np.arange(len(maskH["Yp1"])), Xp1=_np.arange(len(maskH["Xp1"])))
dmaskH = maskH.where(maskH, drop=True) The last line is being flagged as error in dmaskH = maskH.where(maskH.compute(), drop=True) |
PR #334 introduces a workaround to this issue. I am keeping this issue open, as we need to investigate whether |
I think compute is OK here. |
That is reassuring. I was a little bit worried that |
newest
Description
xarray version 2023.3.
Simplest example to reproduce the error: Live demo notebook in binder:
The last line fails to run. The (relevant) traceback:
the error being:
Quick fix for now,
pin
xarray
to version <= 2023.2.This might be a good opportunity to see if we can start using
xoak
to find indexes instead .The text was updated successfully, but these errors were encountered: