MCPcopy Create free account
hub / github.com/pydata/xarray / assert_identical

Function assert_identical

xarray/tests/test_ufuncs.py:16–21  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

14
15
16def assert_identical(a, b):
17 assert type(a) is type(b) or float(a) == float(b)
18 if isinstance(a, xr.DataArray | xr.Dataset | xr.Variable):
19 assert_identical_(a, b)
20 else:
21 assert_array_equal(a, b)
22
23
24@pytest.mark.parametrize(

Callers 6

test_binaryFunction · 0.70
test_binary_outFunction · 0.70
test_groupbyFunction · 0.70
test_outFunction · 0.70
test_ufuncsMethod · 0.70
test_ufunc_pickleMethod · 0.70

Calls 1

typeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…