Skip to content

Commit

Permalink
Merge branch 'PR' into devel
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 5, 2024
2 parents 1a322ce + 6e2df4d commit 188f945
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dpdata/plugins/ase.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ 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
) # not use Voigt notation -> return 3x3 matrix
except PropertyNotImplementedError:
pass
else:
Expand Down

0 comments on commit 188f945

Please sign in to comment.