Skip to content

Commit

Permalink
fix call irreps in test
Browse files Browse the repository at this point in the history
Signed-off-by: chenhe <[email protected]>
  • Loading branch information
chAwater committed Jul 14, 2023
1 parent 6ba2f9b commit 90b40e7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/group/test_disentangle_representation.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,49 +294,49 @@ def test_restrict_rr_cyclic_odd_cyclic_odd(self):

def test_restrict_o2_flips(self):
dg = O2(10)
repr = directsum(dg.irreps)
repr = directsum(dg.irreps())
sg_id = (0., 1)
self.check_disentangle(dg.restrict_representation(sg_id, repr))

def test_restrict_o2_dihedral_even(self):
dg = O2(10)
repr = directsum(dg.irreps)
repr = directsum(dg.irreps())
sg_id = (0., 6)
self.check_disentangle(dg.restrict_representation(sg_id, repr))

def test_restrict_o2_dihedral_odd(self):
dg = O2(10)
repr = directsum(dg.irreps)
repr = directsum(dg.irreps())
sg_id = (0., 3)
self.check_disentangle(dg.restrict_representation(sg_id, repr))

def test_restrict_o2_so2(self):
dg = O2(10)
repr = directsum(dg.irreps)
repr = directsum(dg.irreps())
sg_id = (None, -1)
self.check_disentangle(dg.restrict_representation(sg_id, repr))

def test_restrict_o2_cyclic_even(self):
dg = O2(10)
repr = directsum(dg.irreps)
repr = directsum(dg.irreps())
sg_id = (None, 4)
self.check_disentangle(dg.restrict_representation(sg_id, repr))

def test_restrict_o2_cyclic_odd(self):
dg = O2(10)
repr = directsum(dg.irreps)
repr = directsum(dg.irreps())
sg_id = (None, 3)
self.check_disentangle(dg.restrict_representation(sg_id, repr))

def test_restrict_so2_cyclic_even(self):
dg = SO2(10)
repr = directsum(dg.irreps)
repr = directsum(dg.irreps())
sg_id = 8
self.check_disentangle(dg.restrict_representation(sg_id, repr))

def test_restrict_so2_cyclic_odd(self):
dg = SO2(10)
repr = directsum(dg.irreps)
repr = directsum(dg.irreps())
sg_id = 7
self.check_disentangle(dg.restrict_representation(sg_id, repr))

Expand Down

0 comments on commit 90b40e7

Please sign in to comment.