From 2f5e2bf347b271b378220bab2fcdae32812a0cce Mon Sep 17 00:00:00 2001
From: "Daniel.Frisinghelli" <daniel.frisinghelli@eurac.edu>
Date: Wed, 17 Nov 2021 10:44:50 +0100
Subject: [PATCH] Change path to models states.

---
 climax/main/downscale_bootstrap.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/climax/main/downscale_bootstrap.py b/climax/main/downscale_bootstrap.py
index 1355fcb..3e119c0 100644
--- a/climax/main/downscale_bootstrap.py
+++ b/climax/main/downscale_bootstrap.py
@@ -51,7 +51,8 @@ if __name__ == '__main__':
         lr_scheduler=LR_SCHEDULER)
 
     # models trained with bootstrapping
-    state_file = MODEL_PATH.joinpath('bootstrap', PREDICTAND, state_file)
+    state_file = MODEL_PATH.joinpath('bootstrap', PREDICTAND, state_file.stem,
+                                     state_file)
     target = TARGET_PATH.joinpath('bootstrap', PREDICTAND, state_file.stem)
 
     # check if output path exists
-- 
GitLab