()
| 132 | |
| 133 | |
| 134 | def test_xarray_handles_dask(): |
| 135 | da = pytest.importorskip("dask.array") |
| 136 | x = xr.DataArray(np.ones((2, 2)), dims=["x", "y"]) |
| 137 | y = da.ones((2, 2), chunks=(2, 2)) |
| 138 | result = np.add(x, y) |
| 139 | assert result.chunks == ((2,), (2,)) |
| 140 | assert isinstance(result, xr.DataArray) |
| 141 | |
| 142 | |
| 143 | def test_dask_defers_to_xarray(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…