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

Function test_coordinate_transform_equals

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

Source from the content-addressed store, hash-verified

189
190
191def test_coordinate_transform_equals() -> None:
192 ds1 = create_coords(scale=2.0, shape=(2, 2)).to_dataset()
193 ds2 = create_coords(scale=2.0, shape=(2, 2)).to_dataset()
194 ds3 = create_coords(scale=4.0, shape=(2, 2)).to_dataset()
195
196 # cannot use `assert_equal()` test utility function here yet
197 # (indexes invariant check are still based on IndexVariable, which
198 # doesn't work with coordinate transform index coordinate variables)
199 assert ds1.equals(ds2)
200 assert not ds1.equals(ds3)
201
202
203def test_coordinate_transform_sel() -> None:

Callers

nothing calls this directly

Calls 3

create_coordsFunction · 0.85
to_datasetMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…