Skip to content

Commit

Permalink
fix warning for custom permutations
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcarreras committed Mar 31, 2023
1 parent 406d81c commit 9330ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosymlib/symmetry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _get_symgroup_results(self, group):
"""

# patch for permutations
if group.lower() not in ['cs', 'ci', 'c1']:
if self._permutation is not None and group.lower() not in ['cs', 'ci', 'c1']:
warnings.warn('Custom permutation for this group is not implemented')
self._permutation = None

Expand Down

0 comments on commit 9330ef1

Please sign in to comment.