Closed kkoz closed 4 years ago
@axtimwalde / @igorpisarev: Is there anything more you'd like to see here?
/cc @joshmoore
Nope, looks good, I just hadn't seen it, so thanks for the reminder!
And released in 0.0.5, because I assume you want this ASAP?
And released in 0.0.5, because I assume you want this ASAP?
Not in any rush but thanks for doing that!
If a
.zarr
file is written withN5ZarrWriter
andRawCompressor
is used, the resulting.zarray
file will have"compressor":{"type":"raw"}
. When Python Zarr attempts to open this dataset, it crashes with the errorValueError: codec not available: None
. According to the Zarr specification, if no compression is being used,compressor
should be set tonull
(https://zarr.readthedocs.io/en/stable/spec/v2.html#metadata). This PR modifies the way the.zarray
file is written so that whenRawCompressor
is used,compressor
is set tonull
in the.zarray
file. The following piece of Java code will create a very simple Zarr dataset which has the compressor set to{"type":"raw"}
:The error can be induced by opening Python and running:
Running the same Java code with the PR yields: