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

Method test_dataset_getattr

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

Source from the content-addressed store, hash-verified

773 assert kernel_call_count == 0
774
775 def test_dataset_getattr(self):
776 # Test that pickling/unpickling converts the dask backend
777 # to numpy in neither the data variables nor the non-index coords
778 data = build_dask_array("data")
779 nonindex_coord = build_dask_array("coord")
780 ds = Dataset(data_vars={"a": ("x", data)}, coords={"y": ("x", nonindex_coord)})
781 with suppress(AttributeError):
782 _ = ds.NOTEXIST
783 assert kernel_call_count == 0
784
785 def test_values(self):
786 # Test that invoking the values property does not convert the dask

Callers

nothing calls this directly

Calls 2

DatasetClass · 0.90
build_dask_arrayFunction · 0.85

Tested by

no test coverage detected