fixed bug when submitting slurm job
This commit is contained in:
@@ -48,5 +48,5 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
#### call your code below
|
#### call your code below
|
||||||
scgenerator {command} {configs_list}
|
scgenerator {command} {config}
|
||||||
exit
|
exit
|
||||||
@@ -142,9 +142,7 @@ def main():
|
|||||||
tmp_path = Path("submit tmp.sh")
|
tmp_path = Path("submit tmp.sh")
|
||||||
|
|
||||||
job_name = f"supercontinuum {final_name}"
|
job_name = f"supercontinuum {final_name}"
|
||||||
submit_sh = template.format(
|
submit_sh = template.format(job_name=job_name, **vars(args))
|
||||||
job_name=job_name, configs_list=" ".join(f'"{c}"' for c in args.config), **vars(args)
|
|
||||||
)
|
|
||||||
|
|
||||||
tmp_path.write_text(submit_sh)
|
tmp_path.write_text(submit_sh)
|
||||||
subprocess.run(["sbatch", "--test-only", str(tmp_path)])
|
subprocess.run(["sbatch", "--test-only", str(tmp_path)])
|
||||||
|
|||||||
Reference in New Issue
Block a user