Skip to content
Snippets Groups Projects
Commit 744b3472 authored by Colm Talbot's avatar Colm Talbot
Browse files

bug fix in tests.py

parent 553a3ad2
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -54,10 +54,8 @@ class Test(unittest.TestCase):
name='luminosity_distance', lower=dL - 10, upper=dL + 10)
}
result, sampler = peyote.sampler.run_sampler(
likelihood, priors, sampler='nestle', verbose=False)
self.assertAlmostEqual(np.mean(result.samples), dL,
delta=np.std(result.samples))
result = peyote.sampler.run_sampler(likelihood, priors, sampler='nestle', verbose=False)
self.assertAlmostEqual(np.mean(result.samples), dL, delta=np.std(result.samples))
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment