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

Method test_from_dask_variable

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

Source from the content-addressed store, hash-verified

791 assert not a._in_memory
792
793 def test_from_dask_variable(self):
794 # Test array creation from Variable with dask backend.
795 # This is used e.g. in broadcast()
796 a = DataArray(self.lazy_array.variable, coords={"x": range(4)}, name="foo")
797 self.assertLazyAndIdentical(self.lazy_array, a)
798
799 @requires_pint
800 def test_tokenize_duck_dask_array(self):

Callers

nothing calls this directly

Calls 2

DataArrayClass · 0.90

Tested by

no test coverage detected