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

Function async_explicit_indexing_adapter

xarray/core/indexing.py:1164–1176  ·  view source on GitHub ↗
(
    key: ExplicitIndexer,
    shape: _Shape,
    indexing_support: IndexingSupport,
    raw_indexing_method: Callable[..., Any],
)

Source from the content-addressed store, hash-verified

1162
1163
1164async def async_explicit_indexing_adapter(
1165 key: ExplicitIndexer,
1166 shape: _Shape,
1167 indexing_support: IndexingSupport,
1168 raw_indexing_method: Callable[..., Any],
1169) -> Any:
1170 raw_key, numpy_indices = decompose_indexer(key, shape, indexing_support)
1171 result = await raw_indexing_method(raw_key.tuple)
1172 if numpy_indices.tuple:
1173 # index the loaded duck array
1174 indexable = as_indexable(result)
1175 result = apply_indexer(indexable, numpy_indices)
1176 return result
1177
1178
1179def apply_indexer(indexable, indexer: ExplicitIndexer):

Callers

nothing calls this directly

Calls 3

as_indexableFunction · 0.90
apply_indexerFunction · 0.90
decompose_indexerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…