MCPcopy Index your code
hub / github.com/dask/dask / trim_overlap

Function trim_overlap

dask/array/_array_expr/_overlap.py:94–108  ·  view source on GitHub ↗

Trim sides from each block. This couples well with the ``map_overlap`` operation which may leave excess data on each block. See also -------- dask.array.overlap.map_overlap

(x, depth, boundary=None)

Source from the content-addressed store, hash-verified

92
93
94def trim_overlap(x, depth, boundary=None):
95 """Trim sides from each block.
96
97 This couples well with the ``map_overlap`` operation which may leave
98 excess data on each block.
99
100 See also
101 --------
102 dask.array.overlap.map_overlap
103
104 """
105
106 # parameter to be passed to trim_internal
107 axes = coerce_depth(x.ndim, depth)
108 return trim_internal(x, axes=axes, boundary=boundary)
109
110
111def trim_internal(x, axes, boundary=None):

Callers

nothing calls this directly

Calls 2

coerce_depthFunction · 0.70
trim_internalFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…