@@ -670,38 +670,24 @@ async def group(
670670 g : group
671671 The new group.
672672 """
673-
674- zarr_format = _handle_zarr_version_or_format (zarr_version = zarr_version , zarr_format = zarr_format )
675-
676673 mode : AccessModeLiteral
677674 if overwrite :
678675 mode = "w"
679676 else :
680- mode = "r+"
681- store_path = await make_store_path (store , path = path , mode = mode , storage_options = storage_options )
682-
683- if chunk_store is not None :
684- warnings .warn ("chunk_store is not yet implemented" , ZarrRuntimeWarning , stacklevel = 2 )
685- if cache_attrs is not None :
686- warnings .warn ("cache_attrs is not yet implemented" , ZarrRuntimeWarning , stacklevel = 2 )
687- if synchronizer is not None :
688- warnings .warn ("synchronizer is not yet implemented" , ZarrRuntimeWarning , stacklevel = 2 )
689- if meta_array is not None :
690- warnings .warn ("meta_array is not yet implemented" , ZarrRuntimeWarning , stacklevel = 2 )
691-
692- if attributes is None :
693- attributes = {}
694-
695- try :
696- return await AsyncGroup .open (store = store_path , zarr_format = zarr_format )
697- except (KeyError , FileNotFoundError ):
698- _zarr_format = zarr_format or _default_zarr_format ()
699- return await AsyncGroup .from_store (
700- store = store_path ,
701- zarr_format = _zarr_format ,
702- overwrite = overwrite ,
703- attributes = attributes ,
704- )
677+ mode = "a"
678+ return await open_group (
679+ store = store ,
680+ mode = mode ,
681+ chunk_store = chunk_store ,
682+ cache_attrs = cache_attrs ,
683+ synchronizer = synchronizer ,
684+ path = path ,
685+ zarr_version = zarr_version ,
686+ zarr_format = zarr_format ,
687+ meta_array = meta_array ,
688+ attributes = attributes ,
689+ storage_options = storage_options ,
690+ )
705691
706692
707693async def create_group (
0 commit comments