From 46aee77dc4effd3557960d61fcdf9d972dc42246 Mon Sep 17 00:00:00 2001
From: "Daniel.Frisinghelli" <daniel.frisinghelli@eurac.edu>
Date: Tue, 28 Sep 2021 15:30:37 +0200
Subject: [PATCH] Fixed typo.

---
 climax/main/downscale_infer.py | 2 +-
 climax/main/downscale_train.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/climax/main/downscale_infer.py b/climax/main/downscale_infer.py
index 4f45992..28dcfc1 100644
--- a/climax/main/downscale_infer.py
+++ b/climax/main/downscale_infer.py
@@ -48,7 +48,7 @@ if __name__ == '__main__':
                 str(LOSS.min_amount).replace('.', ''),
                 repr(LOSS).strip('()')))
         else:
-            state_file = state_file.replace('.pt', '{}.pt'.format(
+            state_file = state_file.replace('.pt', '_{}.pt'.format(
                 repr(LOSS).strip('()')))
 
     # path to model state
diff --git a/climax/main/downscale_train.py b/climax/main/downscale_train.py
index 8ad352f..e0ccc3d 100644
--- a/climax/main/downscale_train.py
+++ b/climax/main/downscale_train.py
@@ -50,7 +50,7 @@ if __name__ == '__main__':
                 str(LOSS.min_amount).replace('.', ''),
                 repr(LOSS).strip('()')))
         else:
-            state_file = state_file.replace('.pt', '{}.pt'.format(
+            state_file = state_file.replace('.pt', '_{}.pt'.format(
                 repr(LOSS).strip('()')))
 
     # path to model state
-- 
GitLab