@@ -1525,7 +1525,7 @@ def rule(x):
15251525 return BranchingRule (Rtype , Stype , lambda x : [(x [4 ]- 3 * x [5 ])/ 2 ,(x [0 ]+ x [1 ]+ x [2 ]+ x [3 ])/ 2 ,(- x [0 ]- x [1 ]+ x [2 ]+ x [3 ])/ 2 ,(- x [0 ]+ x [1 ]- x [2 ]+ x [3 ])/ 2 ], "symmetric" )
15261526 elif Rtype == CartanType ("E6" ) and Stype == CartanType ("C4" ):
15271527 def f (x ):
1528- [ x0 , x1 , x2 , x3 , x4 , x5 ] = x [:6 ]
1528+ x0 , x1 , x2 , x3 , x4 , x5 = x [:6 ]
15291529 return [(x0 + x1 + x2 + x3 + x4 - 3 * x5 )/ 2 ,
15301530 (- x0 - x1 - x2 - x3 + x4 - 3 * x5 )/ 2 ,
15311531 - x0 + x3 , - x1 + x2 ]
@@ -1712,12 +1712,12 @@ def br(x):
17121712 return BranchingRule (Rtype , Stype , lambda x : x , "isomorphic" )
17131713 elif Rtype == CartanType ("B2" ) and Stype == CartanType ("C2" ):
17141714 def rule (x ):
1715- [ x1 , x2 ] = x
1715+ x1 , x2 = x
17161716 return [x1 + x2 , x1 - x2 ]
17171717 return BranchingRule (Rtype , Stype , rule , "isomorphic" )
17181718 elif Rtype == CartanType ("C2" ) and Stype == CartanType ("B2" ):
17191719 def rule (x ):
1720- [ x1 , x2 ] = x
1720+ x1 , x2 = x
17211721 return [(x1 + x2 ) / 2 , (x1 - x2 ) / 2 ]
17221722 return BranchingRule (Rtype , Stype , rule , "isomorphic" )
17231723 elif Rtype == CartanType ("B1" ) and Stype == CartanType ("A1" ):
@@ -1730,18 +1730,18 @@ def rule(x):
17301730 return BranchingRule (Rtype , Stype , lambda x : [x [0 ]- x [1 ]], "isomorphic" )
17311731 elif Rtype == CartanType ("A3" ) and Stype == CartanType ("D3" ):
17321732 def rule (x ):
1733- [ x1 , x2 , x3 , x4 ] = x
1733+ x1 , x2 , x3 , x4 = x
17341734 return [(x1 + x2 - x3 - x4 )/ 2 , (x1 - x2 + x3 - x4 )/ 2 , (x1 - x2 - x3 + x4 )/ 2 ]
17351735 return BranchingRule (Rtype , Stype , rule , "isomorphic" )
17361736 elif Rtype == CartanType ("D3" ) and Stype == CartanType ("A3" ):
17371737 def rule (x ):
1738- [ t1 , t2 , t3 ] = x
1738+ t1 , t2 , t3 = x
17391739 return [(t1 + t2 + t3 )/ 2 , (t1 - t2 - t3 )/ 2 ,
17401740 (- t1 + t2 - t3 )/ 2 , (- t1 - t2 + t3 )/ 2 ]
17411741 return BranchingRule (Rtype , Stype , rule , "isomorphic" )
17421742 elif Rtype == CartanType ("D2" ) and Stype == CartanType ("A1xA1" ):
17431743 def rule (x ):
1744- [ t1 , t2 ] = x
1744+ t1 , t2 = x
17451745 return [(t1 - t2 )/ 2 , - (t1 - t2 )/ 2 , (t1 + t2 )/ 2 , - (t1 + t2 )/ 2 ]
17461746 return BranchingRule (Rtype , Stype , rule , "isomorphic" )
17471747 else :
@@ -1759,7 +1759,7 @@ def rule(x):
17591759 nr = 2 * Rtype [1 ]
17601760 else :
17611761 raise ValueError ("Rule not found" )
1762- [ s1 , s2 ] = [stypes [i ][1 ] for i in range (2 )]
1762+ s1 , s2 = [stypes [i ][1 ] for i in range (2 )]
17631763 ns = [s1 , s2 ]
17641764 for i in range (2 ):
17651765 if stypes [i ][0 ] == 'A' :
@@ -1860,14 +1860,14 @@ def rule(x):
18601860 return BranchingRule (Rtype , Stype , lambda x : [x [1 ]+ x [3 ],x [2 ]- x [3 ],- x [1 ]- x [2 ],- 2 * x [6 ],x [4 ]+ x [5 ],- x [4 ]+ x [5 ]], "miscellaneous" )
18611861 elif stypes == [CartanType ("F4" ), CartanType ("A1" )]:
18621862 def f (x ):
1863- [ x0 , x1 , x2 , x3 , x4 , x5 , x6 ] = x [:7 ]
1863+ x0 , x1 , x2 , x3 , x4 , x5 , x6 = x [:7 ]
18641864 return [(x4 - x5 )/ 2 - x6 , (x0 + x1 + x2 + x3 )/ 2 ,
18651865 (- x0 - x1 + x2 + x3 )/ 2 , (- x0 + x1 - x2 + x3 )/ 2 ,
18661866 x5 - x6 , x6 - x5 ]
18671867 return BranchingRule (Rtype , Stype , f , "miscellaneous" )
18681868 elif stypes == [CartanType ("A1" ), CartanType ("F4" )]:
18691869 def f (x ):
1870- [ x0 , x1 , x2 , x3 , x4 , x5 , x6 ] = x [:7 ]
1870+ x0 , x1 , x2 , x3 , x4 , x5 , x6 = x [:7 ]
18711871 return [x5 - x6 , x6 - x5 , (x4 - x5 )/ 2 - x6 ,
18721872 (x0 + x1 + x2 + x3 )/ 2 ,
18731873 (- x0 - x1 + x2 + x3 )/ 2 ,
@@ -2289,7 +2289,7 @@ def maximal_subgroups(ct, mode='print_rules'):
22892289 elif mode == "get_rule" :
22902290 d = {}
22912291 for line in rul :
2292- [ k , br ] = line .split (":" )
2292+ k , br = line .split (":" )
22932293 br = eval (br )
22942294 if k in d :
22952295 if not isinstance (d [k ], list ):
0 commit comments