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

Function test_rechunk_unknown_from_array

dask/array/tests/test_rechunk.py:628–638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

626
627
628def test_rechunk_unknown_from_array():
629 pytest.importorskip("pandas")
630 dd = pytest.importorskip("dask.dataframe")
631 # pd = pytest.importorskip('pandas')
632 x = dd.from_array(da.ones(shape=(4, 4), chunks=(2, 2))).values
633 # result = x.rechunk({1: 5})
634 result = x.rechunk((None, 4))
635 assert np.isnan(x.chunks[0]).all()
636 assert np.isnan(result.chunks[0]).all()
637 assert x.chunks[1] == (4,)
638 assert_eq(x, result)
639
640
641@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
onesMethod · 0.45
rechunkMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected