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

Function test_asanyarray

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

Source from the content-addressed store, hash-verified

3110
3111@pytest.mark.filterwarnings("ignore:the matrix subclass")
3112def test_asanyarray():
3113 x = np.matrix([1, 2, 3])
3114 dx = da.asanyarray(x)
3115 assert dx.numblocks == (1, 1)
3116 chunks = compute_as_if_collection(Array, dx.dask, dx.__dask_keys__())
3117 assert isinstance(chunks[0][0], np.matrix)
3118 assert da.asanyarray(dx) is dx
3119
3120
3121def test_asanyarray_dataframe():

Callers

nothing calls this directly

Calls 2

compute_as_if_collectionFunction · 0.90
__dask_keys__Method · 0.45

Tested by

no test coverage detected