Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstangl committed Jul 16, 2024
1 parent e0b7a43 commit 7a9da20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions flavio/physics/test_ckm.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class TestCKM(unittest.TestCase):
par_s = dict(t12=t12,t13=t13,t23=t23,delta=delta)
par_w = dict(laC=laC,A=A,rhobar=rhobar,etabar=etabar)
par_t = dict(Vus=Vus,Vub=Vub,Vcb=Vcb,gamma=gamma)
par_b = dict(Vus=Vus,Vcb=Vcb,beta=beta,gamma=gamma)

def test_ckm_parametrizations(self):
np.testing.assert_almost_equal(self.v_t/self.v_s, np.ones((3,3)), decimal=5)
Expand Down Expand Up @@ -79,11 +80,11 @@ def test_ckm_xi(self):
xi('x','bs')

def test_ckm_angles(self):
c_gamma = get_ckmangle_gamma(self.par_t)
c_gamma = get_ckmangle_gamma(self.par_b)
# angle gamma should be equal to input
self.assertAlmostEqual(c_gamma/gamma, 1., places=3)
c_beta = get_ckmangle_beta(self.par_t)
c_alpha = get_ckmangle_alpha(self.par_t)
c_beta = get_ckmangle_beta(self.par_b)
c_alpha = get_ckmangle_alpha(self.par_b)
# some of angles should be 180°
self.assertEqual(
degrees(c_alpha) + degrees(c_beta) + degrees(c_gamma), 180.)
2 changes: 1 addition & 1 deletion flavio/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_exp_combo(self):
def test_get_dep_par(self):
self.assertEqual(
get_dependent_parameters_sm('BR(Bs->mumu)'),
{'DeltaGamma/Gamma_Bs', 'GF', 'Vcb', 'Vub', 'Vus', 'alpha_e', 'alpha_s', 'f_Bs', 'gamma', 'm_Bs', 'm_b', 'm_mu', 'm_s', 'tau_Bs', 'm_t'}
{'DeltaGamma/Gamma_Bs', 'GF', 'Vcb', 'beta', 'Vus', 'alpha_e', 'alpha_s', 'f_Bs', 'gamma', 'm_Bs', 'm_b', 'm_mu', 'm_s', 'tau_Bs', 'm_t'}
)
self.assertEqual(
get_dependent_parameters_sm('BR(B0->ee)'),
Expand Down

0 comments on commit 7a9da20

Please sign in to comment.