Fix: broken args when comitting exps to slurm

This commit is contained in:
Dominik Moritz Roth 2024-08-22 17:43:21 +02:00
parent 24b232138f
commit 1fe0f67a3d

View File

@ -55,7 +55,7 @@ class Slate():
self.consume(config, 'vars', {}) self.consume(config, 'vars', {})
return config return config
def _load_config(self, filename, name, stack=[]): def _load_config(self, filename, name, stack):
stack.append(f'{filename}:{name}') stack.append(f'{filename}:{name}')
with open(filename, 'r') as f: with open(filename, 'r') as f:
docs = yaml.safe_load_all(f) docs = yaml.safe_load_all(f)
@ -421,7 +421,7 @@ class Slate():
if args.slurm: if args.slurm:
if args.ask_verify: if args.ask_verify:
self.verify = True self.verify = True
self.run_slurm(args.config_experiments, config_exp_pairs) self.run_slurm(' '.join(args.config_experiments.join(' ')), config_exp_pairs)
else: else:
self.run_local(config_exp_pairs, args.task_id) self.run_local(config_exp_pairs, args.task_id)