Square lattice example mode plot
[qpms.git] / oldtests / generate_groupcode.py
blob846e7656bb2a75eeaebf3065693d3f5efd716caf
1 #!/usr/bin/env python3
2 from qpms.symmetries import point_group_info
4 codestring = "#include <qpms/groups.h>\n"
5 for name in sorted(point_group_info.keys()):
6 info = point_group_info[name]
7 codestring += 'const qpms_finite_group_t QPMS_FINITE_GROUP_%s = ' %name
8 codestring += info.generate_c_source()
9 codestring += ";\n\n"
11 print(codestring)