Skip to content

Commit

Permalink
Merge pull request #7 from thangckt/devel
Browse files Browse the repository at this point in the history
Update ase.py
  • Loading branch information
thangckt authored Apr 5, 2024
2 parents 3ba5933 + 912d78c commit aeb569c
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 aeb569c

Please sign in to comment.