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

Function test_stack_scalars

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

Source from the content-addressed store, hash-verified

657
658
659def test_stack_scalars():
660 d = da.arange(4, chunks=2)
661
662 s = da.stack([d.mean(), d.sum()])
663
664 assert s.compute().tolist() == [np.arange(4).mean(), np.arange(4).sum()]
665
666
667def test_stack_promote_type():

Callers

nothing calls this directly

Calls 4

arangeMethod · 0.45
meanMethod · 0.45
sumMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected