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

Method test_from_dask

xarray/tests/test_dataset.py:8325–8329  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8323
8324 @requires_dask
8325 def test_from_dask(self) -> None:
8326 ds = xr.Dataset({"a": ("x", [1, 2, 3])}, coords={"lat": ("x", [4, 5, 6])})
8327 ds_chunked = ds.chunk(1)
8328
8329 assert_identical(ds_chunked.as_numpy(), ds.compute())
8330
8331 @requires_pint
8332 def test_from_pint(self) -> None:

Callers

nothing calls this directly

Calls 4

chunkMethod · 0.95
computeMethod · 0.95
assert_identicalFunction · 0.90
as_numpyMethod · 0.45

Tested by

no test coverage detected