Almost like f-strings

parent f3b702cd
Pipeline #51979010 passed with stage
in 2 minutes and 57 seconds
......@@ -159,8 +159,10 @@ class EXX(PairDensity):
if restart.is_file():
data = json.loads(restart.read_text())
print('Restarting from {restart}\n'.format(**locals()),
'Read {} spin+k-point pairs'.format(len(data)),
n = len(data)
print('Restarting from {restart}. '
'Read {n} spin+k-point pairs.'
data = []
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment