From 12f0ecd565d991dbc8607ac3e11a14cd2289fc90 Mon Sep 17 00:00:00 2001
From: Michael <m.langguth@fz-juelich.de>
Date: Wed, 10 Feb 2021 17:44:43 +0100
Subject: [PATCH] Bugfix in if-clause for getting class instance for
 postprocessing and correction to ValuError printing.

---
 .../config_runscripts/generate_runscript.py                   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/video_prediction_tools/config_runscripts/generate_runscript.py b/video_prediction_tools/config_runscripts/generate_runscript.py
index f167dc49..0c692c0b 100644
--- a/video_prediction_tools/config_runscripts/generate_runscript.py
+++ b/video_prediction_tools/config_runscripts/generate_runscript.py
@@ -36,10 +36,10 @@ def get_runscript_cls(target_runscript_name, venv_name, lhpc):
         cls_inst = Config_Preprocess2(venv_name, lhpc)
     elif target_runscript_name == "train":
         cls_inst = Config_Train(venv_name, lhpc)
-    elif target_runscript_name == "preprocess1":
+    elif target_runscript_name == "postprocess":
         cls_inst = Config_Postprocess(venv_name, lhpc)
     else:
-        raise ValueError("%{0}: Unknown workflow runscript '{1}'. passed.")
+        raise ValueError("%{0}: Unknown workflow runscript '{1}'. passed.".format(method_name, target_runscript_name))
 
     return cls_inst
 #
-- 
GitLab