MCPcopy Index your code
hub / github.com/dask/dask / test_asanyarray

Function test_asanyarray

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

Source from the content-addressed store, hash-verified

3120
3121@pytest.mark.filterwarnings("ignore:the matrix subclass")
3122def test_asanyarray():
3123 x = np.matrix([1, 2, 3])
3124 dx = da.asanyarray(x)
3125 assert dx.numblocks == (1, 1)
3126 chunks = compute_as_if_collection(Array, dx.dask, dx.__dask_keys__())
3127 assert isinstance(chunks[0][0], np.matrix)
3128 assert da.asanyarray(dx) is dx
3129
3130
3131def 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…