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

Function unindexed_dims_repr

xarray/core/formatting.py:637–646  ·  view source on GitHub ↗
(dims, coords, max_rows: int | None = None)

Source from the content-addressed store, hash-verified

635
636
637def unindexed_dims_repr(dims, coords, max_rows: int | None = None):
638 unindexed_dims = [d for d in dims if d not in coords]
639 if unindexed_dims:
640 dims_start = "Dimensions without coordinates: "
641 dims_str = _element_formatter(
642 unindexed_dims, col_width=len(dims_start), max_rows=max_rows
643 )
644 return dims_start + dims_str
645 else:
646 return None
647
648
649@contextlib.contextmanager

Callers 4

array_reprFunction · 0.85
dataset_reprFunction · 0.85
dims_and_coords_reprFunction · 0.85
_datatree_node_reprFunction · 0.85

Calls 1

_element_formatterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…