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

Function coords_repr

xarray/core/formatting.py:472–487  ·  view source on GitHub ↗
(coords: AbstractCoordinates, col_width=None, max_rows=None)

Source from the content-addressed store, hash-verified

470
471
472def coords_repr(coords: AbstractCoordinates, col_width=None, max_rows=None):
473 if col_width is None:
474 col_width = _calculate_col_width(coords)
475 dims = tuple(coords._data.dims)
476 dim_ordered_coords = sorted(
477 coords.items(), key=functools.partial(_coord_sort_key, dims=dims)
478 )
479 return _mapping_repr(
480 dict(dim_ordered_coords),
481 title="Coordinates",
482 summarizer=summarize_variable,
483 expand_option_name="display_expand_coords",
484 col_width=col_width,
485 indexes=coords.xindexes,
486 max_rows=max_rows,
487 )
488
489
490def inherited_coords_repr(node: DataTree, col_width=None, max_rows=None):

Callers 4

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

Calls 3

_calculate_col_widthFunction · 0.85
_mapping_reprFunction · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…