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

Method setUp

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

Source from the content-addressed store, hash-verified

78
79 @pytest.fixture(autouse=True)
80 def setUp(self):
81 self.values = np.random.default_rng(0).random((4, 6))
82 self.data = da.from_array(self.values, chunks=(2, 2))
83
84 self.eager_var = Variable(("x", "y"), self.values)
85 self.lazy_var = Variable(("x", "y"), self.data)
86
87 def test_basics(self):
88 v = self.lazy_var

Callers

nothing calls this directly

Calls 2

VariableClass · 0.90
from_arrayMethod · 0.45

Tested by

no test coverage detected