MCPcopy Index your code
hub / github.com/pydata/xarray / indexes

Method indexes

xarray/tests/test_indexes.py:593–609  ·  view source on GitHub ↗
(
        self, unique_indexes, indexes_and_vars
    )

Source from the content-addressed store, hash-verified

591
592 @pytest.fixture
593 def indexes(
594 self, unique_indexes, indexes_and_vars
595 ) -> Indexes[Index] | Indexes[pd.Index]:
596 x_idx, y_idx, z_midx = unique_indexes
597 indexes: dict[Any, Index] = {
598 "x": x_idx,
599 "y": y_idx,
600 "z": z_midx,
601 "one": z_midx,
602 "two": z_midx,
603 }
604
605 _, variables = indexes_and_vars
606
607 index_type = Index if isinstance(x_idx, Index) else pd.Index
608
609 return Indexes(indexes, variables, index_type=index_type)
610
611 def test_interface(self, unique_indexes, indexes) -> None:
612 x_idx = unique_indexes[0]

Callers

nothing calls this directly

Calls 1

IndexesClass · 0.90

Tested by

no test coverage detected