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

Method test_dataarray_getattr

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

Source from the content-addressed store, hash-verified

762 assert not ds2["y"]._in_memory
763
764 def test_dataarray_getattr(self):
765 # ipython/jupyter does a long list of getattr() calls to when trying to
766 # represent an object.
767 # Make sure we're not accidentally computing dask variables.
768 data = build_dask_array("data")
769 nonindex_coord = build_dask_array("coord")
770 a = DataArray(data, dims=["x"], coords={"y": ("x", nonindex_coord)})
771 with suppress(AttributeError):
772 _ = a.NOTEXIST
773 assert kernel_call_count == 0
774
775 def test_dataset_getattr(self):
776 # Test that pickling/unpickling converts the dask backend

Callers

nothing calls this directly

Calls 2

DataArrayClass · 0.90
build_dask_arrayFunction · 0.85

Tested by

no test coverage detected