MCPcopy Index your code
hub / github.com/dask/dask / test_short_stack

Function test_short_stack

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

Source from the content-addressed store, hash-verified

649
650
651def test_short_stack():
652 x = np.array([1])
653 d = da.from_array(x, chunks=(1,))
654 s = da.stack([d])
655 assert s.shape == (1, 1)
656 chunks = compute_as_if_collection(Array, s.dask, s.__dask_keys__())
657 assert chunks[0][0].shape == (1, 1)
658
659
660def test_stack_scalars():

Callers

nothing calls this directly

Calls 2

compute_as_if_collectionFunction · 0.90
__dask_keys__Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…