(self)
| 7532 | |
| 7533 | @requires_dask |
| 7534 | def test_from_dask(self) -> None: |
| 7535 | da = xr.DataArray([1, 2, 3], dims="x", coords={"lat": ("x", [4, 5, 6])}) |
| 7536 | da_chunked = da.chunk(1) |
| 7537 | |
| 7538 | assert_identical(da_chunked.as_numpy(), da.compute()) |
| 7539 | np.testing.assert_equal(da.to_numpy(), np.array([1, 2, 3])) |
| 7540 | np.testing.assert_equal(da["lat"].to_numpy(), np.array([4, 5, 6])) |
| 7541 | |
| 7542 | @requires_pint |
| 7543 | def test_from_pint(self) -> None: |