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

Method setup

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

Source from the content-addressed store, hash-verified

598
599class IOWriteNetCDFDaskDistributed:
600 def setup(self):
601 # TODO: Lazily skipped in CI as it is very demanding and slow.
602 # Improve times and remove errors.
603 _skip_slow()
604
605 requires_dask()
606
607 try:
608 import distributed
609 except ImportError as err:
610 raise NotImplementedError() from err
611
612 self.client = distributed.Client()
613 self.write = create_delayed_write()
614
615 def cleanup(self):
616 self.client.shutdown()

Callers

nothing calls this directly

Calls 3

_skip_slowFunction · 0.85
requires_daskFunction · 0.85
create_delayed_writeFunction · 0.85

Tested by

no test coverage detected