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

Class CustomIndex

xarray/tests/test_formatting.py:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16class CustomIndex(Index):
17 names: tuple[str, ...]
18
19 def __init__(self, names: tuple[str, ...]):
20 self.names = names
21
22 def __repr__(self):
23 return f"CustomIndex(coords={self.names})"
24
25
26class TestFormatting:

Callers 3

test_index_reprMethod · 0.70
test_diff_array_reprMethod · 0.70

Calls

no outgoing calls

Tested by 3

test_index_reprMethod · 0.56
test_diff_array_reprMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…