fixed bug when submitting slurm job

This commit is contained in:
Benoît Sierro
2021-09-02 16:01:11 +02:00
parent fb23786c70
commit 4b2495ca6d
2 changed files with 2 additions and 4 deletions

View File

@@ -48,5 +48,5 @@ do
done
#### call your code below
scgenerator {command} {configs_list}
scgenerator {command} {config}
exit

View File

@@ -142,9 +142,7 @@ def main():
tmp_path = Path("submit tmp.sh")
job_name = f"supercontinuum {final_name}"
submit_sh = template.format(
job_name=job_name, configs_list=" ".join(f'"{c}"' for c in args.config), **vars(args)
)
submit_sh = template.format(job_name=job_name, **vars(args))
tmp_path.write_text(submit_sh)
subprocess.run(["sbatch", "--test-only", str(tmp_path)])