From b6474c47eb8781aa2c08f4561a95db0ed2bcd43c Mon Sep 17 00:00:00 2001 From: Christopher Spinrath <christopher.spinrath@univ-grenoble-alpes.fr> Date: Wed, 19 Feb 2025 19:09:14 +0100 Subject: [PATCH] Support "if-not-variable" condition --- run-exp.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/run-exp.py b/run-exp.py index fe326a5..916f2ed 100755 --- a/run-exp.py +++ b/run-exp.py @@ -90,6 +90,12 @@ class Task: if v not in variables.keys() or (isinstance(variables[v], bool) and not variables[v]): continue # skip + if "if-not-variable" in p: + v = p["if-not-variable"] + + if v in variables.keys() and (not isinstance(variables[v], bool) or variables[v]): + continue # skip + args.append(p["value"].format(**variables)) # print() -- GitLab