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

Method __getitem__

dask/layers.py:87–89  ·  view source on GitHub ↗
(self, idx: tuple)

Source from the content-addressed store, hash-verified

85 self.starts = tuple(cached_cumsum(c, initial_zero=True) for c in chunks)
86
87 def __getitem__(self, idx: tuple):
88 loc = tuple((start[i], start[i + 1]) for i, start in zip(idx, self.starts))
89 return tuple(slice(*s, None) for s in loc)
90
91
92class ArrayBlockIdDep(ArrayBlockwiseDep):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected