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

Function _compat_to_str

xarray/core/formatting.py:990–999  ·  view source on GitHub ↗
(compat)

Source from the content-addressed store, hash-verified

988
989
990def _compat_to_str(compat):
991 if callable(compat):
992 compat = compat.__name__
993
994 if compat == "equals":
995 return "equal"
996 elif compat == "allclose":
997 return "close"
998 else:
999 return compat
1000
1001
1002def diff_indexes_repr(a_indexes, b_indexes, col_width: int = 20) -> str:

Callers 3

diff_array_reprFunction · 0.85
diff_dataset_reprFunction · 0.85
diff_datatree_reprFunction · 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…