Skip to content

Commit 88dd6b4

Browse files
committed
add several new figures
1 parent da2337a commit 88dd6b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mb_discovery/slurm.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def slurm_submit_python(
2929
pre_cmd: str = "",
3030
) -> None:
3131
"""Slurm submits a python script using `sbatch --wrap 'python path/to/file.py'`.
32+
3233
Usage: Call this function at the top of the script (before doing any real work) and
3334
then submit a job with `python path/to/file.py slurm-submit`. The slurm job will run
3435
the whole script.
@@ -68,7 +69,7 @@ def slurm_submit_python(
6869
running_as_slurm_job = "SLURM_JOB_ID" in os.environ
6970
if running_as_slurm_job or "slurm-submit" in sys.argv:
7071
# print sbatch command at submission time and into slurm log file
71-
# but not when running interactively
72+
# but not when running in command line or Jupyter
7273
print(" ".join(cmd))
7374

7475
if "slurm-submit" not in sys.argv:

0 commit comments

Comments
 (0)