Skip to content

Commit 3f82a89

Browse files
authored
Update output.py (#346)
Signed-off-by: kiwi <[email protected]> Signed-off-by: kiwi <[email protected]>
1 parent da48136 commit 3f82a89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpdata/cp2k/output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ def handle_single_log_frame(self, lines):
104104
# CONSERVED QUANTITY [hartree] = -0.279168013085E+04
105105
energy_pattern_2 = re.compile(r' POTENTIAL ENERGY\[hartree\]\s+=\s+(?P<number>\S+)')
106106
energy=None
107-
cell_length_pattern = re.compile(r' INITIAL CELL LNTHS\[bohr\]\s+=\s+(?P<A>\S+)\s+(?P<B>\S+)\s+(?P<C>\S+)')
108-
cell_angle_pattern = re.compile(r' INITIAL CELL ANGLS\[deg\]\s+=\s+(?P<alpha>\S+)\s+(?P<beta>\S+)\s+(?P<gamma>\S+)')
107+
cell_length_pattern = re.compile(r' (INITIAL ){0,1}CELL LNTHS\[bohr\]\s+=\s+(?P<A>\S+)\s+(?P<B>\S+)\s+(?P<C>\S+)')
108+
cell_angle_pattern = re.compile(r' (INITIAL ){0,1}CELL ANGLS\[deg\]\s+=\s+(?P<alpha>\S+)\s+(?P<beta>\S+)\s+(?P<gamma>\S+)')
109109
cell_A, cell_B, cell_C = (0,0,0,)
110110
cell_alpha, cell_beta, cell_gamma=(0,0,0,)
111111
cell_a_pattern = re.compile(r' CELL\| Vector a \[angstrom\]:\s+(?P<ax>\S+)\s+(?P<ay>\S+)\s+(?P<az>\S+)')

0 commit comments

Comments
 (0)