Skip to content

Commit

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

0 comments on commit 912d78c

Please sign in to comment.