MCPcopy
hub / github.com/pydata/xarray / assert_identical

Function assert_identical

xarray/tests/test_computation.py:33–41  ·  view source on GitHub ↗

A version of this function which accepts numpy arrays

(a, b)

Source from the content-addressed store, hash-verified

31
32
33def assert_identical(a, b):
34 """A version of this function which accepts numpy arrays"""
35 __tracebackhide__ = True
36 from xarray.testing import assert_identical as assert_identical_
37
38 if hasattr(a, "identical"):
39 assert_identical_(a, b)
40 else:
41 assert_array_equal(a, b)
42
43
44def test_signature_properties() -> None:

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…