Closed
Description
Minimal, reproducible code sample, a copy-pastable example if possible
open_consolidated
doesn't accept the same keywords as open_group
. This makes it hard to replace open_group
with open_consolidated
in downstream code (e.g. xarray).
# create a new store
path = 'consolidated-test.zarr'
new_group = zarr.open_group(path, mode='w', synchronizer=None)
a = new_group.create('foo', shape=(10,))
zarr.consolidate_metadata(new_group.store)
group_cons = zarr.open_consolidated(path, mode='r', synchronizer=None)
gives the error
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-17-1eea689b4531> in <module>()
3 a = new_group.create('foo', shape=(10,))
4 zarr.consolidate_metadata(new_group.store)
----> 5 group_cons = zarr.open_consolidated(path, mode='r', synchronizer=None)
TypeError: open_consolidated() got an unexpected keyword argument 'synchronizer'
Problem description
The open_consolidated
convenience function should pass through any arguments to the underlying open
method. Instead, it does this
Contrast this with open
:
Version and installation information
Zarr version is '2.2.1.dev97'
Metadata
Metadata
Assignees
Labels
No labels