From f3ee65fcaf4caabeed897b936c305162d801d420 Mon Sep 17 00:00:00 2001
From: Cyril Danilevski <cyril.danilevski@xfel.eu>
Date: Wed, 20 Oct 2021 13:29:05 +0200
Subject: [PATCH] Fix slurm's nice flag formatting

---
 src/xfel_calibrate/calibrate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfel_calibrate/calibrate.py b/src/xfel_calibrate/calibrate.py
index 64b2a5806..cd6b24084 100755
--- a/src/xfel_calibrate/calibrate.py
+++ b/src/xfel_calibrate/calibrate.py
@@ -717,7 +717,7 @@ class SlurmOptions:
         launcher_slurm += ["--job-name", self.job_name]
 
         if self.nice:
-            launcher_slurm += ["--nice", str(self.nice)]
+            launcher_slurm.append(f"--nice={self.nice}")
 
         if self.mem:
             launcher_slurm.append(f"--mem={self.mem}G")
-- 
GitLab