From 1ca4b103aadcd334357d529b9ab82b35325f2ba0 Mon Sep 17 00:00:00 2001 From: Karim Ahmed <karim.ahmed@xfel.eu> Date: Tue, 7 Jan 2020 17:53:57 +0100 Subject: [PATCH] run int --- xfel_calibrate/calibrate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xfel_calibrate/calibrate.py b/xfel_calibrate/calibrate.py index 08311e921..b46bb0864 100755 --- a/xfel_calibrate/calibrate.py +++ b/xfel_calibrate/calibrate.py @@ -795,7 +795,8 @@ def run(): rr = args["run"] # Only put run, when it is not in the out_folder if isinstance(rr, int): - args["out_folder"] = "{}/{}/".format(args["out_folder"], rr) + rr = "r{:04d}".format(rr) + args["out_folder"] = "{}/{}/".format(args["out_folder"], rr) out_path = os.path.abspath(args["out_folder"]) else: print("No 'out_folder' defined as argument, outputting to '{}' instead.".format( -- GitLab