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

Method setup

asv_bench/benchmarks/dataset.py:24–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

22
23class DatasetChunk:
24 def setup(self):
25 requires_dask()
26 self.ds = Dataset()
27 array = np.ones(1000)
28 for i in range(250):
29 self.ds[f"var{i}"] = ("x", array)
30
31 def time_chunk(self):
32 self.ds.chunk(x=(1,) * 1000)

Callers

nothing calls this directly

Calls 2

DatasetClass · 0.90
requires_daskFunction · 0.85

Tested by

no test coverage detected