(coords: AbstractCoordinates, col_width=None, max_rows=None)
| 470 | |
| 471 | |
| 472 | def 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 | |
| 490 | def inherited_coords_repr(node: DataTree, col_width=None, max_rows=None): |
no test coverage detected
searching dependent graphs…