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

Function test_setitem_masked

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

Source from the content-addressed store, hash-verified

4258
4259
4260def test_setitem_masked():
4261 # Test np.ma.masked assignment to object-type arrays
4262 x = np.ma.array(["a", 1, 3.14], dtype=object)
4263 dx = da.from_array(x.copy(), chunks=2)
4264
4265 x[...] = np.ma.masked
4266 dx[...] = np.ma.masked
4267
4268 assert_eq(x.mask, da.ma.getmaskarray(dx))
4269
4270
4271def test_setitem_hardmask():

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
copyMethod · 0.45

Tested by

no test coverage detected