@@ -1131,7 +1131,7 @@ def is_zarr_key(key):
1131
1131
return open_consolidated (store , metadata_key = metadata_key )
1132
1132
1133
1133
1134
- def open_consolidated (store , metadata_key = '.zmetadata' , mode = 'r+' ):
1134
+ def open_consolidated (store , metadata_key = '.zmetadata' , mode = 'r+' , ** kwargs ):
1135
1135
"""Open group using metadata previously consolidated into a single key.
1136
1136
1137
1137
This is an optimised method for opening a Zarr group, where instead of
@@ -1158,6 +1158,9 @@ def open_consolidated(store, metadata_key='.zmetadata', mode='r+'):
1158
1158
read/write (must exist) although only writes to data are allowed,
1159
1159
changes to metadata including creation of new arrays or group
1160
1160
are not allowed.
1161
+ **kwargs
1162
+ Additional parameters are passed through to :func:`zarr.creation.open_array` or
1163
+ :func:`zarr.hierarchy.open_group`.
1161
1164
1162
1165
Returns
1163
1166
-------
@@ -1182,4 +1185,4 @@ def open_consolidated(store, metadata_key='.zmetadata', mode='r+'):
1182
1185
meta_store = ConsolidatedMetadataStore (store , metadata_key = metadata_key )
1183
1186
1184
1187
# pass through
1185
- return open (store = meta_store , chunk_store = store , mode = mode )
1188
+ return open (store = meta_store , chunk_store = store , mode = mode , ** kwargs )
0 commit comments