示例#1
0
 def selected_group(self):
     """Returns currently selected group
     """
     if self._group_type.get() == "Alternating":
         self._alt_degree.refresh_input()
         return AlternatingGroup(self._alt_degree.get_number())
     if self._group_type.get() == "Classical":
         self._clas_dim.refresh_input()
         self._clas_field.refresh_input()
         return ClassicalGroup(self._clas_type.variable.get(),
                               self._clas_dim.get_number(), self._clas_field.get_number())
     if self._group_type.get() == "Sporadic":
         return SporadicGroup(self._sporadic_group.variable.get())
     if self._group_type.get() == "Exceptional":
         self._ex_field.refresh_input()
         return ExceptionalGroup(self._ex_type.variable.get(), self._ex_field.get_number())
示例#2
0
 def test_exceptional_orders(self, params):
     g = ExceptionalGroup(*params)
     order = orders_data.exceptional_orders_data[params]
     self.assertEqual(order, g.order())
示例#3
0
 def test_spectra(self, params):
     g = ExceptionalGroup(*params)
     apex = spectra_data.exceptional[params]
     self.assertSetEqual(set(apex), set(g.apex()))