From 601bdadf447a9a6f5a6337d8e94653858c27ed33 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Thu, 7 Apr 2022 02:05:05 -0400 Subject: [PATCH] update for recent changes in thermo output --- python/lammps/formats.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/lammps/formats.py b/python/lammps/formats.py index 641e17be3e..f7a7a4eb83 100644 --- a/python/lammps/formats.py +++ b/python/lammps/formats.py @@ -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