From 6c80c225dfe942c98d8fb9302c966473a7379713 Mon Sep 17 00:00:00 2001
From: Franck Dary <franck.dary@lis-lab.fr>
Date: Sun, 14 Feb 2021 20:03:03 +0100
Subject: [PATCH] Added evalArguments to launchBatches

---
 UD_any/launchBatches.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/UD_any/launchBatches.py b/UD_any/launchBatches.py
index e38a6b5..91e8916 100755
--- a/UD_any/launchBatches.py
+++ b/UD_any/launchBatches.py
@@ -26,10 +26,10 @@ def addNamesAndCommandsTrain(names, commands, mode, expName, arguments, seed) :
 ###############################################################################
 
 ###############################################################################
-def addNamesAndCommandsDecode(names, commands, mode, expName) :
+def addNamesAndCommandsDecode(names, commands, mode, expName, arguments) :
   names.append(expName)
   
-  commands.append("./evaluate.sh {} bin/{} --silent".format(mode, expName))
+  commands.append("./evaluate.sh {} bin/{} --silent {}".format(mode, expName, arguments))
 ###############################################################################
 
 ###############################################################################
@@ -62,7 +62,7 @@ if __name__ == "__main__" :
           prepareExperiment(xp['lang'],xp['template'],xp['expName'])
           addNamesAndCommandsTrain(names, commands, xp['mode'],xp['expName'],xp['arguments'],seed=100+i)
         else :
-          addNamesAndCommandsDecode(names, commands, xp['mode'],xp['expName'])
+          addNamesAndCommandsDecode(names, commands, xp['mode'],xp['expName'],xp['evalArguments'])
 
   launchSlurmArray(names, commands, name, device, nbHours, limit)
 ###############################################################################
-- 
GitLab