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

Function test_from_array

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

Source from the content-addressed store, hash-verified

155
156
157def test_from_array():
158 x = sparse.COO.from_numpy(np.eye(10))
159 d = da.from_array(x, chunks=(5, 5))
160
161 assert isinstance(d._meta, sparse.COO)
162 assert_eq(d, d)
163 assert isinstance(d.compute(), sparse.COO)
164
165
166def test_map_blocks():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
computeMethod · 0.45

Tested by

no test coverage detected