MCPcopy
hub / github.com/dask/dask / test_no_chunks

Function test_no_chunks

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

Source from the content-addressed store, hash-verified

4128
4129
4130def test_no_chunks():
4131 X = np.arange(11)
4132 dsk = {("x", 0): np.arange(5), ("x", 1): np.arange(5, 11)}
4133 x = Array(dsk, "x", ((np.nan, np.nan),), np.arange(1).dtype)
4134 assert_eq(x + 1, X + 1)
4135 assert_eq(x.sum(), X.sum())
4136 assert_eq((x + 1).std(), (X + 1).std())
4137 assert_eq((x + x).std(), (X + X).std())
4138 assert_eq((x + x).std(keepdims=True), (X + X).std(keepdims=True))
4139
4140
4141def test_no_chunks_2d():

Callers

nothing calls this directly

Calls 5

sumMethod · 0.95
ArrayClass · 0.90
assert_eqFunction · 0.90
arangeMethod · 0.45
stdMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…