MCPcopy Index your code
hub / github.com/dask/dask / test_basic

Function test_basic

dask/array/tests/test_masked.py:86–99  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

84
85@pytest.mark.parametrize("func", functions)
86def test_basic(func):
87 x = da.random.default_rng().random((2, 3, 4), chunks=(1, 2, 2))
88 x[x < 0.4] = 0
89
90 y = da.ma.masked_equal(x, 0)
91
92 xx = func(x)
93 yy = func(y)
94
95 assert_eq(xx, da.ma.filled(yy, 0))
96
97 if yy.shape:
98 zz = yy.compute()
99 assert isinstance(zz, np.ma.masked_array)
100
101
102def test_tensordot():

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
funcFunction · 0.70
randomMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…