@@ -591,27 +591,33 @@ def groups(self):
591
591
for key in sorted (listdir (self ._store , self ._path )):
592
592
path = self ._key_prefix + key
593
593
if contains_group (self ._store , path , explicit_only = False ):
594
- yield key , Group (
594
+ yield (
595
+ key ,
596
+ Group (
597
+ self ._store ,
598
+ path = path ,
599
+ read_only = self ._read_only ,
600
+ chunk_store = self ._chunk_store ,
601
+ cache_attrs = self .attrs .cache ,
602
+ synchronizer = self ._synchronizer ,
603
+ zarr_version = self ._version ,
604
+ ),
605
+ )
606
+
607
+ else :
608
+ for key in self .group_keys ():
609
+ path = self ._key_prefix + key
610
+ yield (
611
+ key ,
612
+ Group (
595
613
self ._store ,
596
614
path = path ,
597
615
read_only = self ._read_only ,
598
616
chunk_store = self ._chunk_store ,
599
617
cache_attrs = self .attrs .cache ,
600
618
synchronizer = self ._synchronizer ,
601
619
zarr_version = self ._version ,
602
- )
603
-
604
- else :
605
- for key in self .group_keys ():
606
- path = self ._key_prefix + key
607
- yield key , Group (
608
- self ._store ,
609
- path = path ,
610
- read_only = self ._read_only ,
611
- chunk_store = self ._chunk_store ,
612
- cache_attrs = self .attrs .cache ,
613
- synchronizer = self ._synchronizer ,
614
- zarr_version = self ._version ,
620
+ ),
615
621
)
616
622
617
623
def array_keys (self , recurse = False ):
0 commit comments