added slurm job id print

class-solution
Daniel Pozsar 2 months ago
parent e155ceae71
commit bbdd73f970

@ -21,6 +21,7 @@
"""Docstring in io. """Docstring in io.
""" """
from os import environ
from pickle import dump, load from pickle import dump, load
from typing import Final from typing import Final
@ -251,6 +252,10 @@ def print_job_description(simulation_parameters: dict) -> None:
print( print(
"================================================================================================================================================================" "================================================================================================================================================================"
) )
try:
print(f"SLURM job ID: {environ["SLURM_JOB_ID"]}")
except:
print("SLURM job ID not found.")
print("Input file: ") print("Input file: ")
print(simulation_parameters["infile"]) print(simulation_parameters["infile"])
print("Output file: ") print("Output file: ")
@ -308,6 +313,10 @@ def print_parameters(simulation_parameters: dict) -> None:
print( print(
"================================================================================================================================================================" "================================================================================================================================================================"
) )
try:
print(f"SLURM job ID: {environ["SLURM_JOB_ID"]}")
except:
print("SLURM job ID not found.")
print("Input file: ") print("Input file: ")
print(simulation_parameters["infile"]) print(simulation_parameters["infile"])
print("Output file: ") print("Output file: ")

Loading…
Cancel
Save