From 1fe0f67a3d05623f93ef893431476ae105b8ee5b Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Thu, 22 Aug 2024 17:43:21 +0200 Subject: [PATCH] Fix: broken args when comitting exps to slurm --- slate/slate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slate/slate.py b/slate/slate.py index 294faf7..b7cd8e9 100644 --- a/slate/slate.py +++ b/slate/slate.py @@ -55,7 +55,7 @@ class Slate(): self.consume(config, 'vars', {}) return config - def _load_config(self, filename, name, stack=[]): + def _load_config(self, filename, name, stack): stack.append(f'{filename}:{name}') with open(filename, 'r') as f: docs = yaml.safe_load_all(f) @@ -421,7 +421,7 @@ class Slate(): if args.slurm: if args.ask_verify: self.verify = True - self.run_slurm(args.config_experiments, config_exp_pairs) + self.run_slurm(' '.join(args.config_experiments.join(' ')), config_exp_pairs) else: self.run_local(config_exp_pairs, args.task_id)