diff --git a/xfel_calibrate/settings.py b/xfel_calibrate/settings.py index df716b905f77f767bffcd88316d27e7896db44dd..11738bd55fff9de76004554be07990a432b33de5 100644 --- a/xfel_calibrate/settings.py +++ b/xfel_calibrate/settings.py @@ -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)