Skip to content

Commit

Permalink
Update ase.py
Browse files Browse the repository at this point in the history
Signed-off-by: C. Thang Nguyen <[email protected]>
  • Loading branch information
thangckt authored Apr 4, 2024
1 parent f0febca commit 4a07590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpdata/plugins/ase.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def from_labeled_system(self, atoms: "ase.Atoms", **kwargs) -> dict:
"forces": np.array([forces]),
}
try:
stress = atoms.get_stress(False)
stress = atoms.get_stress(voigt=False) ## not use Voigt notation -> return 3x3 matrix
except PropertyNotImplementedError:
pass
else:
Expand Down

0 comments on commit 4a07590

Please sign in to comment.