Skip to content

Commit 7a09854

Browse files
committed
fixed typo in checking cp2k pattern match.
1 parent 1a4b985 commit 7a09854

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dpdata/cp2k/output.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def get_log_block_generator(self):
8383
lines.append(line)
8484
if any(p.match(line) for p in delimiter_patterns):
8585
if delimiter_flag is True:
86+
yield_flag = True
8687
yield lines
8788
lines = []
8889
delimiter_flag = False
@@ -108,6 +109,7 @@ def get_xyz_block_generator(self):
108109
raise StopIteration("None of the xyz patterns are matched")
109110
break
110111
if p3.match(line):
112+
yield_flag = True
111113
atom_num = int(p3.match(line).group(1))
112114
lines = []
113115
lines.append(line)

0 commit comments

Comments
 (0)