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

Function compat_variable

xarray/testing/assertions.py:238–241  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

236 equiv.__name__ = "allclose" # type: ignore[attr-defined]
237
238 def compat_variable(a, b):
239 a = getattr(a, "variable", a)
240 b = getattr(b, "variable", b)
241 return a.dims == b.dims and (a._data is b._data or equiv(a.data, b.data))
242
243 def compat_node(a, b):
244 return a.ds._coord_names == b.ds._coord_names and utils.dict_equiv(

Callers 1

assert_allcloseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…