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

Method setup

asv_bench/benchmarks/dataset_io.py:561–572  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

559
560class IOReadDataTreeNetCDF4(IONestedDataTree):
561 def setup(self):
562 # TODO: Lazily skipped in CI as it is very demanding and slow.
563 # Improve times and remove errors.
564 _skip_slow()
565
566 requires_dask()
567
568 self.make_datatree()
569 self.format = "NETCDF4"
570 self.filepath = "datatree.nc4.nc"
571 dtree = self.dtree
572 dtree.to_netcdf(filepath=self.filepath)
573
574 def time_load_datatree_netcdf4(self):
575 xr.open_datatree(self.filepath, engine="netcdf4").load()

Callers

nothing calls this directly

Calls 4

_skip_slowFunction · 0.85
requires_daskFunction · 0.85
make_datatreeMethod · 0.80
to_netcdfMethod · 0.45

Tested by

no test coverage detected