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

Function test_stack_scalars

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

Source from the content-addressed store, hash-verified

659
660
661def test_stack_scalars():
662 d = da.arange(4, chunks=2)
663
664 s = da.stack([d.mean(), d.sum()])
665
666 assert s.compute().tolist() == [np.arange(4).mean(), np.arange(4).sum()]
667
668
669def 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