MCPcopy
hub / github.com/pydata/xarray / setUp

Method setUp

xarray/tests/test_dask.py:339–347  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

337
338 @pytest.fixture(autouse=True)
339 def setUp(self):
340 self.values = np.random.randn(4, 6)
341 self.data = da.from_array(self.values, chunks=(2, 2))
342 self.eager_array = DataArray(
343 self.values, coords={"x": range(4)}, dims=("x", "y"), name="foo"
344 )
345 self.lazy_array = DataArray(
346 self.data, coords={"x": range(4)}, dims=("x", "y"), name="foo"
347 )
348
349 def test_chunk(self) -> None:
350 test_cases: list[

Callers

nothing calls this directly

Calls 2

DataArrayClass · 0.90
from_arrayMethod · 0.45

Tested by

no test coverage detected