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

Function test_map_blocks

dask/array/tests/test_sparse.py:166–170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164
165
166def test_map_blocks():
167 x = da.eye(10, chunks=5)
168 y = x.map_blocks(sparse.COO.from_numpy, meta=sparse.COO.from_numpy(np.eye(1)))
169 assert isinstance(y._meta, sparse.COO)
170 assert_eq(y, y)
171
172
173def test_meta_from_array():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
map_blocksMethod · 0.45

Tested by

no test coverage detected