update for recent changes in thermo output

This commit is contained in:
Axel Kohlmeyer
2022-04-07 02:05:05 -04:00
parent 348ee5299e
commit 601bdadf44

View File

@ -46,14 +46,15 @@ class LogFile:
for line in f:
if "ERROR" in line or "exited on signal" in line:
self.errors.append(line)
elif line.startswith('Step '):
elif re.match(r'^ *Step ', line):
in_thermo = True
in_data_section = True
keys = line.split()
current_run = {}
for k in keys:
current_run[k] = []
elif line.startswith('---------------- Step'):
elif re.match(r'^------* Step ', line):
if not in_thermo:
current_run = {'Step': [], 'CPU': []}
in_thermo = True