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)
| 78 | |
| 79 | |
| 80 | def trim_overlap(x, depth, boundary=None): |
| 81 | """Trim sides from each block. |
| 82 | |
| 83 | This couples well with the ``map_overlap`` operation which may leave |
| 84 | excess data on each block. |
| 85 | |
| 86 | See also |
| 87 | -------- |
| 88 | dask.array.overlap.map_overlap |
| 89 | |
| 90 | """ |
| 91 | |
| 92 | # parameter to be passed to trim_internal |
| 93 | axes = coerce_depth(x.ndim, depth) |
| 94 | return trim_internal(x, axes=axes, boundary=boundary) |
| 95 | |
| 96 | |
| 97 | def trim_internal(x, axes, boundary=None): |
nothing calls this directly
no test coverage detected