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

Function _get_overlap_rechunked_chunks

dask/array/_array_expr/_overlap.py:385–388  ·  view source on GitHub ↗
(x, depth2)

Source from the content-addressed store, hash-verified

383
384
385def _get_overlap_rechunked_chunks(x, depth2):
386 depths = [max(d) if isinstance(d, tuple) else d for d in depth2.values()]
387 # rechunk if new chunks are needed to fit depth in every chunk
388 return tuple(ensure_minimum_chunksize(size, c) for size, c in zip(depths, x.chunks))
389
390
391def overlap(x, depth, boundary, *, allow_rechunk=True):

Callers 2

overlapFunction · 0.70
map_overlapFunction · 0.70

Calls 3

maxFunction · 0.85
ensure_minimum_chunksizeFunction · 0.70
valuesMethod · 0.45

Tested by

no test coverage detected