Skip to content
Snippets Groups Projects
Commit 5defa96d authored by Siddhant Tibrewal's avatar Siddhant Tibrewal
Browse files

fixed relative paths in hierarchial zarr-subgroups

parent 41cc2115
No related branches found
No related tags found
No related merge requests found
......@@ -107,4 +107,5 @@ def add_healpix_hierarchy(
zg = dataset.create_group(name=f"{prefix}{o}")
add_healpix_grid(zg, o)
if o < order:
zg.attrs["hiopy::parent"] = f"{dataset.basename}/{prefix}{o+1}"
parent_name = f"{dataset.basename}/{prefix}{o+1}" if dataset.basename is not "" else f"{prefix}{o+1}"
zg.attrs["hiopy::parent"] = parent_name
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