From c5af064ea65d991b36880d0f146c5339f392c83e Mon Sep 17 00:00:00 2001 From: qzhu2017 Date: Thu, 24 Oct 2024 13:14:32 -0400 Subject: [PATCH] fix tiny molecule bug --- pyxtal/molecule.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyxtal/molecule.py b/pyxtal/molecule.py index b8e527e8..330c5890 100644 --- a/pyxtal/molecule.py +++ b/pyxtal/molecule.py @@ -1674,7 +1674,10 @@ def change_orientation(self, angle="random", flip=False, update=True): if update: self.r = r self.matrix = matrix - return matrix + return matrix + else: + return self.matrix + def set_axis(self): if self.degrees == 2: