Skip to content
Snippets Groups Projects
Commit 0ed3bfc8 authored by Nils-Arne Dreier's avatar Nils-Arne Dreier Committed by Siddhant Tibrewal
Browse files

fix: handle get_var_group correctly if the parent group is root

parent 06e7b209
No related branches found
No related tags found
No related merge requests found
Pipeline #101309 waiting for manual action
......@@ -2,6 +2,9 @@ import zarr
def get_var_group(v):
store = zarr.open(v.store)
parent_group_path = '/'.join(v.path.split('/')[:-1])
return store[parent_group_path]
z = zarr.open(v.store)
parent_group_path = "/".join(v.path.split("/")[:-1])
if parent_group_path == "":
return z
else:
return z[parent_group_path]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment