Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
660
def
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
668
def
test_stack_promote_type():
Callers
nothing calls this directly
Calls
4
arange
Method · 0.45
mean
Method · 0.45
sum
Method · 0.45
compute
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…