Skip to content
Snippets Groups Projects
Commit b6dfe43a authored by Nils-Arne Dreier's avatar Nils-Arne Dreier
Browse files

fix: loco nginx config for 3d fields

parent 5be8515c
No related branches found
No related tags found
1 merge request!25fix: loco nginx config for 3d fields
......@@ -77,9 +77,16 @@ class LocoServer:
cell_regex = "(0)"
else:
cell_regex = generator().numerical_range(*chunk_range)[1:-1]
f.write(
f' "~^{v.name}/\\d+\\.\\d+\\.{cell_regex}$" ' f"loco_backend{r};\n"
)
if len(v.shape) == 3:
f.write(
f' "~^{v.name}/\\d+\\.\\d+\\.{cell_regex}$" ' f"loco_backend{r};\n"
)
elif len(v.shape) == 2:
f.write(
f' "~^{v.name}/\\d+\\.{cell_regex}$" ' f"loco_backend{r};\n"
)
else:
raise RuntimeError(f"{len(v.shape)}-dimensional variables are not supported by loco.")
# use last rank for timestep assumption: this rank has
# the healpix order 0 grid where the information
......
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