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

Function test_reduction_names

dask/array/tests/test_reductions.py:621–628  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

619
620
621def test_reduction_names():
622 x = da.ones(5, chunks=(2,))
623 assert x.sum().name.startswith("sum")
624 assert "max" in x.max().name.split("-")[0]
625 assert x.var().name.startswith("var")
626 assert x.all().name.startswith("all")
627 assert any(k[0].startswith("nansum") for k in da.nansum(x).dask)
628 assert x.mean().name.startswith("mean")
629
630
631def test_general_reduction_names():

Callers

nothing calls this directly

Calls 8

anyFunction · 0.85
splitMethod · 0.80
onesMethod · 0.45
sumMethod · 0.45
maxMethod · 0.45
varMethod · 0.45
allMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected