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

Function calc_max_rows_first

xarray/core/formatting.py:139–141  ·  view source on GitHub ↗

Calculate the first rows to maintain the max number of rows.

(max_rows: int)

Source from the content-addressed store, hash-verified

137
138
139def calc_max_rows_first(max_rows: int) -> int:
140 """Calculate the first rows to maintain the max number of rows."""
141 return max_rows // 2 + max_rows % 2
142
143
144def calc_max_rows_last(max_rows: int) -> int:

Callers 2

_mapping_reprFunction · 0.85
_element_formatterFunction · 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…