MCPcopy Index your code
hub / github.com/pydata/xarray / test_coordinate_transform_init

Function test_coordinate_transform_init

xarray/tests/test_coordinate_transform.py:59–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58
59def test_coordinate_transform_init() -> None:
60 tr = SimpleCoordinateTransform((4, 4), 2.0)
61
62 assert tr.coord_names == ("x", "y")
63 # array dimensions in reverse order (y = rows, x = cols)
64 assert tr.dims == ("y", "x")
65 assert tr.dim_size == {"x": 4, "y": 4}
66 assert tr.dtype == np.dtype(np.float64)
67
68 tr2 = SimpleCoordinateTransform((4, 4), 2.0, dtype=np.int64)
69 assert tr2.dtype == np.dtype(np.int64)
70
71
72@pytest.mark.parametrize("dims", [None, ("y", "x")])

Callers

nothing calls this directly

Calls 2

dtypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…