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

Function test_array_picklable

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

Source from the content-addressed store, hash-verified

3963 "array", [da.arange(100, chunks=25), da.ones((10, 10), chunks=25)]
3964)
3965def test_array_picklable(array):
3966 from pickle import dumps, loads
3967
3968 a2 = loads(dumps(array))
3969 assert_eq(array, a2)
3970
3971 a3 = da.ma.masked_equal(array, 0)
3972 assert isinstance(a3._meta, np.ma.MaskedArray)
3973 a4 = loads(dumps(a3))
3974 assert_eq(a3, a4)
3975 assert isinstance(a4._meta, np.ma.MaskedArray)
3976
3977
3978def test_from_array_raises_on_bad_chunks():

Callers

nothing calls this directly

Calls 1

assert_eqFunction · 0.90

Tested by

no test coverage detected