(self)
| 6515 | ds.to_netcdf(tmp) |
| 6516 | |
| 6517 | def test_load_dataarray(self) -> None: |
| 6518 | with create_tmp_file() as tmp: |
| 6519 | original = DataArray(np.random.randn(10), dims=["x"]) |
| 6520 | original.to_netcdf(tmp) |
| 6521 | da = load_dataarray(tmp) |
| 6522 | assert_identical(original, da) |
| 6523 | # this would fail if we used open_dataarray instead of |
| 6524 | # load_dataarray |
| 6525 | da.to_netcdf(tmp) |
| 6526 | |
| 6527 | def test_load_datatree(self) -> None: |
| 6528 | with create_tmp_file() as tmp: |
nothing calls this directly
no test coverage detected