Open constantinpape opened 3 years ago
I've definitely run into this before, but I would think this is coming directly from zarr-python (unless you think the mode isn't being passed somewhere)
Having a look at this, I agree it's coming from zarr-python
. The issue is init_array
takes an overwrite
argument, which defaults to False
and doesn't take into account the file mode of the store (which is what's being passed in the example above). I haven't time now, but should be possible to cook up a zarr-python
-only reproducible example.
This is probably also the same issue as https://github.com/ome/ome-zarr-py/issues/376
Passing
mode=w
toparse_url
does not truncate existing files as it should. Minimal example:Fails with
ContainsArrayError: path '0' contains an array
when run the second time.