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

Method __init__

properties/test_index_manipulation.py:56–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

54 # multi_indexed_dims = Bundle("multi_indexed_dims")
55
56 def __init__(self):
57 super().__init__()
58 self.dataset = Dataset()
59 self.check_default_indexes = True
60
61 # We track these separately as lists so we can guarantee order of iteration over them.
62 # Order of iteration over Dataset.dims is not guaranteed
63 self.indexed_dims = []
64 self.multi_indexed_dims = []
65
66 # Track all used names to ensure uniqueness (avoids flaky Hypothesis tests)
67 self.used_names: set[str] = set()
68
69 def _draw_unique_name(self, data) -> str:
70 """Draw a name that hasn't been used yet in this test case."""

Callers

nothing calls this directly

Calls 1

DatasetClass · 0.90

Tested by

no test coverage detected