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

Function test_from_array_names

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

Source from the content-addressed store, hash-verified

3947
3948
3949def test_from_array_names():
3950 x = np.ones(10)
3951 a = da.from_array(x, chunks=2)
3952 assert a.dask.keys() == {(a.name, i) for i in range(5)}
3953
3954
3955@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

onesMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected