Skip to content
Snippets Groups Projects
Commit 1ca4b103 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

run int

parent 3c65cf5e
No related branches found
No related tags found
1 merge request!217FIX/Include run number in out -folder path if missing
...@@ -795,7 +795,8 @@ def run(): ...@@ -795,7 +795,8 @@ def run():
rr = args["run"] rr = args["run"]
# Only put run, when it is not in the out_folder # Only put run, when it is not in the out_folder
if isinstance(rr, int): 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"]) out_path = os.path.abspath(args["out_folder"])
else: else:
print("No 'out_folder' defined as argument, outputting to '{}' instead.".format( print("No 'out_folder' defined as argument, outputting to '{}' instead.".format(
......
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