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

Method setup

asv_bench/benchmarks/repr.py:79–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 # display an Xarray RangeIndex shouldn't trigger memory expensive conversion
78 # of its lazy coordinate into a numpy array
79 def setup(self):
80 index = xr.indexes.RangeIndex.arange(1_000_000, dim="x")
81 self.ds = xr.Dataset(coords=xr.Coordinates.from_xindex(index))
82
83 def time_repr(self):
84 repr(self.ds.x)

Callers

nothing calls this directly

Calls 2

arangeMethod · 0.80
from_xindexMethod · 0.80

Tested by

no test coverage detected