MCPcopy Index your code
hub / github.com/pydata/xarray / create_test_stacked_array

Function create_test_stacked_array

xarray/tests/test_dataset.py:206–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204
205
206def create_test_stacked_array() -> tuple[DataArray, DataArray]:
207 x = DataArray(pd.Index(np.r_[:10], name="x"))
208 y = DataArray(pd.Index(np.r_[:20], name="y"))
209 a = x * y
210 b = x * y * y
211 return a, b
212
213
214class InaccessibleVariableDataStore(backends.InMemoryDataStore):

Calls 1

DataArrayClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…