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

Method __init__

dask/array/_array_expr/_slicing.py:214–219  ·  view source on GitHub ↗
(
        self, chunks: tuple[tuple[int, ...], ...], values: np.ndarray | dict, axis: int
    )

Source from the content-addressed store, hash-verified

212
213class ArrayOffsetDep(ArrayBlockwiseDep):
214 def __init__(
215 self, chunks: tuple[tuple[int, ...], ...], values: np.ndarray | dict, axis: int
216 ):
217 super().__init__(chunks)
218 self.values = values
219 self.axis = axis
220
221 def __getitem__(self, idx: tuple):
222 return self.values[idx[self.axis]]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected