()
| 36 | |
| 37 | @requires_scipy |
| 38 | def test_tree_index_init_errors() -> None: |
| 39 | xx, yy = np.meshgrid([1.0, 2.0], [3.0, 4.0]) |
| 40 | ds = xr.Dataset(coords={"xx": (("y", "x"), xx), "yy": (("y", "x"), yy)}) |
| 41 | |
| 42 | ds2 = ds.assign_coords(yy=(("u", "v"), [[3.0, 3.0], [4.0, 4.0]])) |
| 43 | |
| 44 | with pytest.raises(ValueError, match="same dimensions"): |
| 45 | ds2.set_xindex(("xx", "yy"), NDPointIndex) |
| 46 | |
| 47 | |
| 48 | @requires_scipy |
nothing calls this directly
no test coverage detected
searching dependent graphs…