1 parent 1a4b985 commit 7a09854Copy full SHA for 7a09854
1 file changed
dpdata/cp2k/output.py
@@ -83,6 +83,7 @@ def get_log_block_generator(self):
83
lines.append(line)
84
if any(p.match(line) for p in delimiter_patterns):
85
if delimiter_flag is True:
86
+ yield_flag = True
87
yield lines
88
lines = []
89
delimiter_flag = False
@@ -108,6 +109,7 @@ def get_xyz_block_generator(self):
108
109
raise StopIteration("None of the xyz patterns are matched")
110
break
111
if p3.match(line):
112
113
atom_num = int(p3.match(line).group(1))
114
115
0 commit comments