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

Method test_from_dask

xarray/tests/test_variable.py:3093–3098  ·  view source on GitHub ↗
(self, Var)

Source from the content-addressed store, hash-verified

3091
3092 @requires_dask
3093 def test_from_dask(self, Var):
3094 v = Var("x", [1, 2, 3])
3095 v_chunked = v.chunk(1)
3096
3097 assert_identical(v_chunked.as_numpy(), v.compute())
3098 np.testing.assert_equal(v.to_numpy(), np.array([1, 2, 3]))
3099
3100 @requires_pint
3101 def test_from_pint(self, Var):

Callers

nothing calls this directly

Calls 5

assert_identicalFunction · 0.90
chunkMethod · 0.45
as_numpyMethod · 0.45
computeMethod · 0.45
to_numpyMethod · 0.45

Tested by

no test coverage detected