Skip to content

Commit

Permalink
Updated print
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreAdam committed Sep 13, 2024
1 parent f541f52 commit 3dfa2bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/milex_scheduler/job_to_slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ def create_slurm_script(job: dict, date: datetime, machine_config: dict) -> str:
user_settings = load_config()
path = os.path.join(user_settings["local"]["path"], "slurm")
slurm_name = name_slurm_script(job, date)
with open(os.path.join(path, slurm_name), "w") as f:
file_path = os.path.join(path, slurm_name)
with open(file_path, "w") as f:
write_slurm_content(f, job, machine_config)
print(f"Saved SLURM script for job {job['name']} saved to {path}")
print(f"Saved SLURM script for job {job['name']} saved to {file_path}")
return slurm_name


Expand Down

0 comments on commit 3dfa2bf

Please sign in to comment.