Skip to content

Commit

Permalink
Fix loading geometry.in in fractional coordinates (atom_frac)
Browse files Browse the repository at this point in the history
	modified:   loadGeometryIN() in ppafm/io.py
  • Loading branch information
mondracek committed Jul 23, 2024
1 parent 8ebe873 commit 8635971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ppafm/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def loadGeometryIN(fname):
elif ws[0] == "lattice_vector":
lvec.append([float(ws[1]), float(ws[2]), float(ws[3])])
elif ws[0] == "atom_frac" and len(lvec) == 3:
xyzs.append(np.array(lvec) @ np.array([float(ws[1]), float(ws[2]), float(ws[3])]))
xyzs.append(np.array([float(ws[1]), float(ws[2]), float(ws[3])]) @ np.array(lvec))
Zs.append(elements.ELEMENT_DICT[ws[4]][0])
elif ws[0] == "trust_radius":
break
Expand Down

0 comments on commit 8635971

Please sign in to comment.