fix: sweep_id not passed correctly

This commit is contained in:
Dominik Moritz Roth 2023-07-27 13:17:21 +02:00
parent c1ba7e01e8
commit e9702cd6a0

View File

@ -205,7 +205,7 @@ class Slate():
sh_lines += self.consume(slurmC, 'sh_lines', [])
if venv := self.consume(slurmC, 'venv', False):
sh_lines += [f'source activate {venv}']
sh_lines += [f'python3 {python_script} {filename} {name} -j $SLURM_ARRAY_TASK_ID -s {self.sweep_id}']
sh_lines += [f'python3 {python_script} {filename} {name} -j $SLURM_ARRAY_TASK_ID --sweep-id {self.sweep_id}']
script = "\n".join(sh_lines)
num_jobs = self._calc_num_jobs(schedC)