()
| 5085 | |
| 5086 | |
| 5087 | def test_zarr_pass_store(): |
| 5088 | zarr = pytest.importorskip("zarr") |
| 5089 | |
| 5090 | with tmpdir() as d: |
| 5091 | if Version(zarr.__version__) < Version("3.0.0.a0"): |
| 5092 | store = zarr.storage.DirectoryStore(d) |
| 5093 | else: |
| 5094 | store = zarr.storage.LocalStore(d, read_only=False) |
| 5095 | a = da.zeros((3, 3), chunks=(1, 1)) |
| 5096 | a.to_zarr(store) |
| 5097 | a2 = da.from_zarr(store) |
| 5098 | assert_eq(a, a2) |
| 5099 | assert a2.chunks == a.chunks |
| 5100 | |
| 5101 | |
| 5102 | def test_zarr_group(): |