()
| 4948 | |
| 4949 | |
| 4950 | def test_zarr_roundtrip(): |
| 4951 | pytest.importorskip("zarr") |
| 4952 | with tmpdir() as d: |
| 4953 | a = da.zeros((3, 3), chunks=(1, 1)) |
| 4954 | a.to_zarr(d) |
| 4955 | a2 = da.from_zarr(d) |
| 4956 | assert_eq(a, a2) |
| 4957 | assert a2.chunks == a.chunks |
| 4958 | |
| 4959 | |
| 4960 | def test_zarr_roundtrip_with_path_like(): |