Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pydata/xarray
/ array_strategy_fn
Method
array_strategy_fn
xarray/tests/test_strategies.py:164–165 ·
view source on GitHub ↗
(*, shape=None, dtype=None)
Source
from the content-addressed store, hash-verified
162
dim_names = data.draw(dimension_names(min_dims=ndims, max_dims=ndims))
163
164
def
array_strategy_fn(*, shape=None, dtype=None):
165
return
npst.arrays(shape=shape, dtype=dtype)
166
167
var = data.draw(
168
variables(
Callers
nothing calls this directly
Calls
1
arrays
Method · 0.80
Tested by
no test coverage detected