diff --git a/dpdata/plugins/ase.py b/dpdata/plugins/ase.py index 46d52580..0871923a 100644 --- a/dpdata/plugins/ase.py +++ b/dpdata/plugins/ase.py @@ -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: