Skip to content

Commit

Permalink
correct the get_dof fun
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed Jul 22, 2023
1 parent 66b4e41 commit 7ee24ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyxtal/wyckoff_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ def _get_dof(self):
"""
get the number of dof for the given structures:
"""
freedom = np.trace(self.wp.ops[0].rotation_matrix) > 0
self.dof = len(freedom[freedom==True])
self.dof = self.wp.get_dof()
#freedom = np.trace(self.wp.ops[0].rotation_matrix) > 0
#self.dof = len(freedom[freedom==True])
#self.dof = len(freedom[freedom==True])


@classmethod
Expand Down

0 comments on commit 7ee24ef

Please sign in to comment.