MCPcopy
hub / github.com/dask/dask / run

Function run

dask/array/tests/test_overlap.py:428–437  ·  view source on GitHub ↗
(depth)

Source from the content-addressed store, hash-verified

426 y = da.ones(5, dtype="int")
427
428 def run(depth):
429 return da.map_overlap(
430 lambda x, y: x.sum() + y.sum(),
431 x,
432 y,
433 depth=depth,
434 chunks=(0,),
435 trim=False,
436 boundary="reflect",
437 ).compute()
438
439 # Check that the number of elements added
440 # to arrays in overlap works as expected

Calls 3

computeMethod · 0.45
map_overlapMethod · 0.45
sumMethod · 0.45

Tested by

no test coverage detected