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

fixed relative paths in hierarchial zarr-subgroups

parent 3c67513d
No related branches found
No related tags found
1 merge request!54Improvements from integration of Hiopy into the Global Hackathon Atmo-only Runs
......@@ -109,4 +109,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