()
| 4955 | |
| 4956 | |
| 4957 | def test_zarr_roundtrip(): |
| 4958 | pytest.importorskip("zarr") |
| 4959 | with tmpdir() as d: |
| 4960 | a = da.zeros((3, 3), chunks=(1, 1)) |
| 4961 | a.to_zarr(d) |
| 4962 | a2 = da.from_zarr(d) |
| 4963 | assert_eq(a, a2) |
| 4964 | assert a2.chunks == a.chunks |
| 4965 | |
| 4966 | |
| 4967 | @pytest.mark.slow |