(self)
| 7523 | np.testing.assert_equal(da["lat"].to_numpy(), np.array([4, 5, 6])) |
| 7524 | |
| 7525 | def test_to_numpy(self) -> None: |
| 7526 | arr = np.array([1, 2, 3]) |
| 7527 | da = xr.DataArray(arr, dims="x", coords={"lat": ("x", [4, 5, 6])}) |
| 7528 | |
| 7529 | with assert_no_warnings(): |
| 7530 | np.testing.assert_equal(np.asarray(da), arr) |
| 7531 | np.testing.assert_equal(np.array(da), arr) |
| 7532 | |
| 7533 | @requires_dask |
| 7534 | def test_from_dask(self) -> None: |
nothing calls this directly
no test coverage detected