Skip to content

Commit

Permalink
Make test deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Dec 21, 2018
1 parent 40832b4 commit 8c662ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flavio/physics/mdms/test_al.py
Expand Up @@ -2,6 +2,7 @@
import flavio
from wilson import Wilson
from math import sqrt, pi
import numpy as np


par = flavio.default_parameters.get_central_all()
Expand Down Expand Up @@ -33,6 +34,7 @@ def test_ae_SM(self):
pd = flavio.combine_measurements('a_e')
ae_exp = pd.central_value
ae_err_exp = pd.error_left
np.random.seed(17)
ae_err_sm = flavio.sm_uncertainty('a_e')
# check that there is a -2.3 sigma tension, see 1804.07409 p. 13
self.assertAlmostEqual((ae_exp - ae_SM) / sqrt(ae_err_sm**2 + ae_err_exp**2), -2.3, delta=0.5)

0 comments on commit 8c662ca

Please sign in to comment.