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())
def test_exceptional_orders(self, params): g = ExceptionalGroup(*params) order = orders_data.exceptional_orders_data[params] self.assertEqual(order, g.order())
def test_spectra(self, params): g = ExceptionalGroup(*params) apex = spectra_data.exceptional[params] self.assertSetEqual(set(apex), set(g.apex()))