Currently we're using an environment variable to globally switch between zarr format v3 and v2. We will need to support both indefinitely, so we need to bake things in now to the API.
I suggest we add a common --zarr-format=2 option to the CLI, and a zarr_format=None parameter to API functions that need it.
I don't think we need to exercise the whole test suite on both versions, we just pick a few examples that'll exercise the main code paths.
Currently we're using an environment variable to globally switch between zarr format v3 and v2. We will need to support both indefinitely, so we need to bake things in now to the API.
I suggest we add a common
--zarr-format=2option to the CLI, and azarr_format=Noneparameter to API functions that need it.I don't think we need to exercise the whole test suite on both versions, we just pick a few examples that'll exercise the main code paths.