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

Method test_from_numpy

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

Source from the content-addressed store, hash-verified

8317
8318class TestNumpyCoercion:
8319 def test_from_numpy(self) -> None:
8320 ds = xr.Dataset({"a": ("x", [1, 2, 3])}, coords={"lat": ("x", [4, 5, 6])})
8321
8322 assert_identical(ds.as_numpy(), ds)
8323
8324 @requires_dask
8325 def test_from_dask(self) -> None:

Callers

nothing calls this directly

Calls 2

as_numpyMethod · 0.95
assert_identicalFunction · 0.90

Tested by

no test coverage detected