()
| 4951 | |
| 4952 | |
| 4953 | def test_zarr_roundtrip(): |
| 4954 | pytest.importorskip("zarr") |
| 4955 | with tmpdir() as d: |
| 4956 | a = da.zeros((3, 3), chunks=(1, 1)) |
| 4957 | a.to_zarr(d) |
| 4958 | a2 = da.from_zarr(d) |
| 4959 | assert_eq(a, a2) |
| 4960 | assert a2.chunks == a.chunks |
| 4961 | |
| 4962 | |
| 4963 | @pytest.mark.parametrize( |