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

Function test_no_chunks

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

Source from the content-addressed store, hash-verified

4121
4122
4123def test_no_chunks():
4124 X = np.arange(11)
4125 dsk = {("x", 0): np.arange(5), ("x", 1): np.arange(5, 11)}
4126 x = Array(dsk, "x", ((np.nan, np.nan),), np.arange(1).dtype)
4127 assert_eq(x + 1, X + 1)
4128 assert_eq(x.sum(), X.sum())
4129 assert_eq((x + 1).std(), (X + 1).std())
4130 assert_eq((x + x).std(), (X + X).std())
4131 assert_eq((x + x).std(keepdims=True), (X + X).std(keepdims=True))
4132
4133
4134def 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