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

Function test_meta_from_array

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

Source from the content-addressed store, hash-verified

171
172
173def test_meta_from_array():
174 x = sparse.COO.from_numpy(np.eye(1))
175 y = da.utils.meta_from_array(x, ndim=2)
176 assert isinstance(y, sparse.COO)
177
178
179@pytest.mark.parametrize("numel", [numel, nannumel])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected