Skip to content
Snippets Groups Projects
Commit a164a5b5 authored by Lukas Kluft's avatar Lukas Kluft
Browse files

Only create non-existing weights

parent c2860231
No related branches found
No related tags found
No related merge requests found
......@@ -7,11 +7,13 @@ set -o errexit -o nounset -o xtrace
weights_file='weights/weights_hpz10_global_1x1.nc'
cdo \
-f nc4 \
-gennn,global_1x1 \
-const,1,hpz7 \
"${weights_file}"
if [[ ! -f $weights_file ]]; then
cdo \
-f nc4 \
-gennn,global_1x1 \
-const,1,hpz7 \
"${weights_file}"
fi
cdo \
-f nc4 \
......
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