MCPcopy
hub / github.com/dask/dask / __init__

Method __init__

dask/layers.py:83–85  ·  view source on GitHub ↗
(self, chunks: tuple[tuple[int, ...], ...])

Source from the content-addressed store, hash-verified

81 starts: tuple[tuple[int, ...], ...]
82
83 def __init__(self, chunks: tuple[tuple[int, ...], ...]):
84 super().__init__(chunks)
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))

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 1

cached_cumsumFunction · 0.90

Tested by

no test coverage detected