def setUpClass(cls): cls.wc = get_random_wc('WET', 'JMS', 160) cls.wet_11 = wet.WETrunner(cls.wc) cls.wet_11_ae0 = wet.WETrunner(cls.wc) cls.wet_11_ae0.parameters['alpha_e'] = 0 cls.wet_11_as0 = wet.WETrunner(cls.wc) cls.wet_11_as0.parameters['alpha_s'] = 1e-16 # avoid div by 0 cls.wet_10 = wet.WETrunner(cls.wc, qed_order=0) cls.wet_01 = wet.WETrunner(cls.wc, qcd_order=0) cls.wet_00 = wet.WETrunner(cls.wc, qed_order=0, qcd_order=0)
def setUpClass(cls): cls.wc = get_random_wc('WET-4', 'JMS', 4) cls.wet = wet.WETrunner(cls.wc)
def test_init(self): with self.assertRaises(AssertionError): wet.WETrunner(0) # argument is not a WC instance wcf = get_random_wc('WET', 'flavio', 160) # wrong basis with self.assertRaises(AssertionError): wet.WETrunner(wcf)