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

refactor: use the full array name as pass through name in hiopy

parent 8de5ca6b
No related branches found
No related tags found
No related merge requests found
......@@ -150,8 +150,9 @@ def main():
src_comp, src_grid = v.attrs["hiopy::yac_source"]
else:
assert "hiopy::parent" in var_group.attrs, f"No source for field {v.name} specified"
parent_var_name = var_group.attrs["hiopy::parent"] + "/" + v.name.split("/")[-1]
source_var = zarr.open(store=v.store)[parent_var_name]
parent_var_path = var_group.attrs["hiopy::parent"] + "/" + src_name
source_var = zarr.open(store=v.store)[parent_var_path]
src_name = source_var.name
source_var_gid = grid_id(source_var)
src_comp = src_grid = f"{args.process_group}_{source_var_gid}"
time_method = v.attrs.get("hiopy::time_method", "point")
......@@ -186,6 +187,7 @@ def main():
yac_time_reduction=time_methods2yac[time_method],
interpolation_stack_yaml=f"- nnn:\n n: {nnn}",
frac_mask=frac_mask,
pass_through_name=v.name,
)
def get_source_triple(v):
......
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