Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_size
Function
test_size
dask/array/tests/test_array_core.py:2815–2818 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2813
2814
2815
def
test_size():
2816
x = da.ones((10, 2), chunks=(3, 1))
2817
assert x.size == np.array(x).size
2818
assert isinstance(x.size, int)
2819
2820
2821
def
test_nbytes():
Callers
nothing calls this directly
Calls
1
ones
Method · 0.45
Tested by
no test coverage detected