Skip to content
Snippets Groups Projects
Commit 9f055533 authored by Steffen Hauf's avatar Steffen Hauf
Browse files

Allow setting the SLURM profile via an ENV variable

See merge request detectors/pycalibration!24
parents 2a79f82c be500b68
No related branches found
No related tags found
2 merge requests!24Allow setting the SLURM profile via an ENV variable,!23Fix/larger data
......@@ -25,4 +25,5 @@ report_path = "{}/calibration_reports/".format(os.getcwd())
try_report_to_output = True
# the command to run this concurrently. It is prepended to the actual call
launcher_command = "sbatch -p exfel -t 24:00:00 --mem 500G --mail-type END --requeue --output {temp_path}/slurm-%j.out"
\ No newline at end of file
sprof = os.environ.get("XFELCALSLURM", "exfel")
launcher_command = "sbatch -p {sprof} -t 24:00:00 --mem 500G --mail-type END --requeue --output {{temp_path}}/slurm-%j.out".format(sprof=sprof)
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