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

Function test_short_stack

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

Source from the content-addressed store, hash-verified

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