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

Function test_from_array_meta

dask/array/tests/test_array_core.py:5826–5831  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5824
5825
5826def test_from_array_meta():
5827 sparse = pytest.importorskip("sparse")
5828 x = np.ones(10)
5829 meta = sparse.COO.from_numpy(x)
5830 y = da.from_array(x, meta=meta)
5831 assert isinstance(y._meta, sparse.COO)
5832
5833
5834def test_compute_chunk_sizes():

Callers

nothing calls this directly

Calls 1

onesMethod · 0.45

Tested by

no test coverage detected