MCPcopy
hub / github.com/dask/dask / test_stack_scalars

Function test_stack_scalars

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

Source from the content-addressed store, hash-verified

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…