summaryrefslogtreecommitdiff
path: root/hpmr.py
diff options
context:
space:
mode:
authorConnor Moore <connor.moore@psi.ch>2026-07-17 10:59:34 +0200
committerConnor Moore <connor.moore@psi.ch>2026-07-17 10:59:34 +0200
commitb08bdbcf4783ec3cab4081c9769db36ebef85da6 (patch)
treef4ed04f75d232f43d1cddd51eb93300a4069e74e /hpmr.py
parent8a5fcdd505c297d185e6630a4bea39c1b4b9a2aa (diff)
Fixed fstring issue with newline for older python versions
Diffstat (limited to 'hpmr.py')
-rwxr-xr-xhpmr.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/hpmr.py b/hpmr.py
index 25a48f9..6adc1a7 100755
--- a/hpmr.py
+++ b/hpmr.py
@@ -43,11 +43,12 @@ with open(sys.argv[0], "rb") as file:
contents = file.read()
filehash = hashlib.md5(contents).hexdigest()
+inputs=str(cli_args)[10:-1].replace(',' , '\n'+17*' ').replace('=',' = ')
print("="*52)
print(f"Run date CET: {time.ctime()}")
print(f"Input file MD5: {filehash}")
-print(f"Input arguments: {str(cli_args)[10:-1].replace(',' , '\n'+17*' ').replace('=',' = ')}")
+print(f"Input arguments: {inputs}")
print("="*52)
############ MATERIALS ############