diff options
| author | Connor Moore <connor.moore@psi.ch> | 2026-07-17 10:59:34 +0200 |
|---|---|---|
| committer | Connor Moore <connor.moore@psi.ch> | 2026-07-17 10:59:34 +0200 |
| commit | b08bdbcf4783ec3cab4081c9769db36ebef85da6 (patch) | |
| tree | f4ed04f75d232f43d1cddd51eb93300a4069e74e | |
| parent | 8a5fcdd505c297d185e6630a4bea39c1b4b9a2aa (diff) | |
Fixed fstring issue with newline for older python versions
| -rwxr-xr-x | hpmr.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 ############ |
