Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dask/dask
/ test_from_array
Function
test_from_array
dask/array/_array_expr/tests/test_collection.py:102–106 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
100
101
102
def
test_from_array():
103
x = np.random.random((10, 10))
104
d = da.from_array(x, chunks=(5, 5))
105
assert_eq(d, x)
106
assert d.chunks == ((5, 5), (5, 5))
107
108
109
@pytest.mark.array_expr
Callers
nothing calls this directly
Calls
2
assert_eq
Function · 0.90
random
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…