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

Function test_bag_array_conversion

dask/array/tests/test_atop.py:796–803  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

794
795
796def test_bag_array_conversion():
797 import dask.bag as db
798
799 b = db.range(10, npartitions=1)
800 (x,) = b.map_partitions(np.asarray).to_delayed()
801 (x,) = (da.from_delayed(a, shape=(10,), dtype=int) for a in [x])
802 z = da.concatenate([x])
803 assert_eq(z, np.arange(10), check_graph=False)
804
805
806def test_svd():

Callers

nothing calls this directly

Calls 5

assert_eqFunction · 0.90
from_delayedMethod · 0.80
to_delayedMethod · 0.45
map_partitionsMethod · 0.45
arangeMethod · 0.45

Tested by

no test coverage detected