(self, variable, indexers, dask, dtype)
| 1883 | ), |
| 1884 | ) |
| 1885 | def test_isel(self, variable, indexers, dask, dtype): |
| 1886 | if dask: |
| 1887 | variable = variable.chunk(dict.fromkeys(variable.dims, 2)) |
| 1888 | quantified = xr.Variable( |
| 1889 | variable.dims, variable.data.astype(dtype) * unit_registry.s |
| 1890 | ) |
| 1891 | |
| 1892 | expected = attach_units( |
| 1893 | strip_units(quantified).isel(indexers), extract_units(quantified) |
| 1894 | ) |
| 1895 | actual = quantified.isel(indexers) |
| 1896 | |
| 1897 | assert_units_equal(expected, actual) |
| 1898 | assert_identical(expected, actual) |
| 1899 | |
| 1900 | @pytest.mark.parametrize( |
| 1901 | "unit,error", |
nothing calls this directly
no test coverage detected