Skip to content

Commit bbbcb61

Browse files
authored
Merge pull request #127 from felix5572/devel
fix bug in cp2k coordnates units convert
2 parents 68011fa + af8a7de commit bbbcb61

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

dpdata/cp2k/output.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,12 @@ def handle_single_xyz_frame(self, lines):
190190
element_index +=1
191191
element_dict[line_list[0]]=[element_index,1]
192192
atom_types_list.append(element_dict[line_list[0]][0])
193-
coords_list.append([float(line_list[1])*AU_TO_ANG,
194-
float(line_list[2])*AU_TO_ANG,
195-
float(line_list[3])*AU_TO_ANG])
193+
# coords_list.append([float(line_list[1])*AU_TO_ANG,
194+
# float(line_list[2])*AU_TO_ANG,
195+
# float(line_list[3])*AU_TO_ANG])
196+
coords_list.append([float(line_list[1]),
197+
float(line_list[2]),
198+
float(line_list[3])])
196199
atom_names=list(element_dict.keys())
197200
atom_numbs=[]
198201
for ii in atom_names:

0 commit comments

Comments
 (0)