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

Function test_short_stack

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

Source from the content-addressed store, hash-verified

648
649
650def test_short_stack():
651 x = np.array([1])
652 d = da.from_array(x, chunks=(1,))
653 s = da.stack([d])
654 assert s.shape == (1, 1)
655 chunks = compute_as_if_collection(Array, s.dask, s.__dask_keys__())
656 assert chunks[0][0].shape == (1, 1)
657
658
659def 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