()
| 1119 | |
| 1120 | @requires_dask |
| 1121 | def test_indexing_dask_array_scalar() -> None: |
| 1122 | # GH4276 |
| 1123 | import dask.array |
| 1124 | |
| 1125 | a = dask.array.from_array(np.linspace(0.0, 1.0)) |
| 1126 | da = DataArray(a, dims="x") |
| 1127 | x_selector = da.argmax(dim=...) |
| 1128 | assert not isinstance(x_selector, DataArray) |
| 1129 | with raise_if_dask_computes(): |
| 1130 | actual = da.isel(x_selector) |
| 1131 | expected = da.isel(x=-1) |
| 1132 | assert_identical(actual, expected) |
| 1133 | |
| 1134 | |
| 1135 | @requires_dask |
nothing calls this directly
no test coverage detected
searching dependent graphs…