MCPcopy Create free account
hub / github.com/dask/dask / __getitem__

Method __getitem__

dask/layers.py:74–75  ·  view source on GitHub ↗
(self, idx: tuple[int, ...])

Source from the content-addressed store, hash-verified

72 """Produce chunk shapes given a chunk index"""
73
74 def __getitem__(self, idx: tuple[int, ...]):
75 return tuple(chunk[i] for i, chunk in zip(idx, self.chunks))
76
77
78class ArraySliceDep(ArrayBlockwiseDep):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected