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

Method chunks

dask/array/_array_expr/_slicing.py:386–392  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

384
385 @functools.cached_property
386 def chunks(self):
387 new_blockdims = [
388 new_blockdim(d, db, i)
389 for d, i, db in zip(self.array.shape, self.index, self.array.chunks)
390 if not isinstance(i, Integral)
391 ]
392 return tuple(map(tuple, new_blockdims))
393
394 def _layer(self) -> dict:
395 # Get a list (for each dimension) of dicts{blocknum: slice()}

Callers

nothing calls this directly

Calls 1

new_blockdimFunction · 0.90

Tested by

no test coverage detected