()
| 5277 | |
| 5278 | |
| 5279 | def test_zarr_nocompute(): |
| 5280 | pytest.importorskip("zarr") |
| 5281 | with tmpdir() as d: |
| 5282 | a = da.zeros((3, 3), chunks=(1, 1)) |
| 5283 | out = a.to_zarr(d, compute=False) |
| 5284 | assert isinstance(out, Array) |
| 5285 | dask.compute(out) |
| 5286 | a2 = da.from_zarr(d) |
| 5287 | assert_eq(a, a2) |
| 5288 | assert a2.chunks == a.chunks |
| 5289 | |
| 5290 | |
| 5291 | def test_zarr_regions(): |