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

Function test_map_blocks_block_id_fusion

dask/array/tests/test_map_blocks.py:7–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def test_map_blocks_block_id_fusion():
8 arr = da.ones((20, 10), chunks=(2, 5))
9
10 def dummy(x, block_id=None, block_info=None):
11 return x
12
13 result = arr.map_blocks(dummy).astype("f8")
14 dsk = collections_to_expr([result])
15 assert len(dsk.__dask_graph__()) == 20

Callers

nothing calls this directly

Calls 5

collections_to_exprFunction · 0.90
onesMethod · 0.45
astypeMethod · 0.45
map_blocksMethod · 0.45
__dask_graph__Method · 0.45

Tested by

no test coverage detected