forked from chjost/clebsch_gordan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_group_old
executable file
·54 lines (46 loc) · 1.25 KB
/
example_group_old
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/bin/python
import numpy as np
import group
def main():
np.set_printoptions(suppress=True)
print(" CMF ".center(50, "*"))
g = group.OhGroup(instances=True)
for gi in g.instances:
print(" %s ".center(20, "*") % (g.lirreps[gi.irid]))
#gi.Characters()
gi.MkClassTable()
g.PrintCharTable()
g.Check1()
g.Check2()
print(" MF1 ".center(50, "*"))
g = group.OhGroup(p2=1, instances=True)
for gi in g.instances:
print(" %s ".center(20, "*") % (g.lirreps[gi.irid]))
#gi.Characters()
gi.MkClassTable()
g.PrintCharTable()
g.Check1()
g.Check2()
print(" MF2 ".center(50, "*"))
g = group.OhGroup(p2=2, instances=True)
for gi in g.instances:
print(" %s ".center(20, "*") % (g.lirreps[gi.irid]))
#gi.Characters()
gi.MkClassTable()
g.PrintCharTable()
g.Check1()
g.Check2()
print(" MF3 ".center(50, "*"))
g = group.OhGroup(p2=3, instances=True)
for gi in g.instances:
print(" %s ".center(20, "*") % (g.lirreps[gi.irid]))
#gi.Characters()
gi.MkClassTable()
g.PrintCharTable()
g.Check1()
g.Check2()
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
pass