Skip to content

Commit

Permalink
try to fix site symm issue #295
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed Nov 29, 2024
1 parent 3bb9061 commit 80b88b5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/test_wyckoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,25 @@ def test_wp_check_translation(self):
def test_wp_site_symm(self):
data = [
(143, 1, "3.."),
(150, 1, ".2."),
(152, 1, ".2."),
(154, 1, ".2."),
(155, 1, ".2"),
(160, 1, ".m"),
(160, 2, "3m"),
(164, 4, ".2/m."),
(165, 1, ".2."),
(177, 3, ".2."),
(178, 2, ".2."),
(180, 3, ".2."),
(181, 3, ".2."),
(230, 6, ".32"),
]
for d in data:
(sg, i, symbol) = d
wp = Group(sg)[i]
wp.get_site_symmetry()
# print("\n========", wp.site_symm, symbol, "==========\n")
if wp.site_symm != symbol: print("\n========", wp.site_symm, d, "==========\n")
assert wp.site_symm == symbol

def test_wp_dof(self):
Expand Down

0 comments on commit 80b88b5

Please sign in to comment.