Skip to content
Snippets Groups Projects
Commit af76e5dd authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Add --slurm-mem option to xfel-calibrate-repeat

parent 82a90721
No related branches found
No related tags found
1 merge request!660Recreate environments on demand for xfel-calibrate-repeat
...@@ -66,6 +66,7 @@ def main(argv=None): ...@@ -66,6 +66,7 @@ def main(argv=None):
ap.add_argument("--out-folder", help="Directory to put output data") ap.add_argument("--out-folder", help="Directory to put output data")
ap.add_argument("--report-path", help="Location to save PDF report") ap.add_argument("--report-path", help="Location to save PDF report")
ap.add_argument("--slurm-partition", help="Submit jobs in this Slurm partition") ap.add_argument("--slurm-partition", help="Submit jobs in this Slurm partition")
ap.add_argument("--slurm-mem", type=int, help="Requested node RAM in GB")
ap.add_argument('--no-cluster-job', action="store_true", ap.add_argument('--no-cluster-job', action="store_true",
help="Run notebooks here, not in cluster jobs") help="Run notebooks here, not in cluster jobs")
args = ap.parse_args(argv) args = ap.parse_args(argv)
...@@ -114,6 +115,7 @@ def main(argv=None): ...@@ -114,6 +115,7 @@ def main(argv=None):
else: else:
joblist = job_chain.submit_jobs(SlurmOptions( joblist = job_chain.submit_jobs(SlurmOptions(
partition=args.slurm_partition, partition=args.slurm_partition,
mem=args.slurm_mem,
)) ))
fmt_args = {'run_path': working_dir, fmt_args = {'run_path': working_dir,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment