Bug description
@jdelsman ran into this.
Dask arrays do not support the item method.
In his case, he could fix this by commenting out the call to item:
def is_empty_dataarray(da: Any) -> bool:
return isinstance(da, xr.DataArray) and da.isnull().all()#.item()
I have to backtrack again why the call to .item was necessary here: Was it introduced because it is necessary in some cases, or was it because of a mypy error?
We also need to test more with dask array fixtures to catch these bugs.
Related to #281 and #1682
Bug description
@jdelsman ran into this.
Dask arrays do not support the
itemmethod.In his case, he could fix this by commenting out the call to
item:I have to backtrack again why the call to
.itemwas necessary here: Was it introduced because it is necessary in some cases, or was it because of a mypy error?We also need to test more with dask array fixtures to catch these bugs.
Related to #281 and #1682