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

Function _calculate_col_width

xarray/core/formatting.py:379–382  ·  view source on GitHub ↗
(col_items)

Source from the content-addressed store, hash-verified

377
378
379def _calculate_col_width(col_items):
380 max_name_length = max((len(str(s)) for s in col_items), default=0)
381 col_width = max(max_name_length, 7) + 6
382 return col_width
383
384
385def _mapping_repr(

Callers 10

_mapping_reprFunction · 0.85
coords_reprFunction · 0.85
inherited_coords_reprFunction · 0.85
indexes_reprFunction · 0.85
array_reprFunction · 0.85
dataset_reprFunction · 0.85
dims_and_coords_reprFunction · 0.85
diff_array_reprFunction · 0.85
diff_dataset_reprFunction · 0.85
_datatree_node_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…