(
indexes: Indexes[Index],
indexers: Mapping[Any, Any],
)
| 2205 | |
| 2206 | |
| 2207 | def isel_indexes( |
| 2208 | indexes: Indexes[Index], |
| 2209 | indexers: Mapping[Any, Any], |
| 2210 | ) -> tuple[dict[Hashable, Index], dict[Hashable, Variable]]: |
| 2211 | # Fast path function _apply_indexes_fast does not work with multi-coordinate |
| 2212 | # Xarray indexes (see https://github.com/pydata/xarray/issues/10063). |
| 2213 | # -> call it only in the most common case where all indexes are default |
| 2214 | # PandasIndex each associated to a single 1-dimensional coordinate. |
| 2215 | if any(type(idx) is not PandasIndex for idx in indexes._indexes.values()): |
| 2216 | return _apply_indexes(indexes, indexers, "isel") |
| 2217 | else: |
| 2218 | return _apply_indexes_fast(indexes, indexers, "isel") |
| 2219 | |
| 2220 | |
| 2221 | def roll_indexes( |
no test coverage detected
searching dependent graphs…