Skip to content
Snippets Groups Projects
Commit 1e36d85d authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix broken text and update documentation

parent 627b2c08
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -262,6 +262,12 @@ def run_sampler(likelihood, priors, label='label', outdir='outdir',
the loglikelhood.
**sampler_kwargs:
All kwargs are passed directly to the samplers `run` functino
Returns
------
result, sampler
An object containing the results, and the sampler instance (useful
for creating plots etc)
"""
implemented_samplers = get_implemented_samplers()
......
......@@ -54,8 +54,8 @@ class Test(unittest.TestCase):
name='luminosity_distance', lower=dL - 10, upper=dL + 10)
}
result = peyote.sampler.run_sampler(likelihood, priors, sampler='nestle',
verbose=False)
result, sampler = peyote.sampler.run_sampler(
likelihood, priors, sampler='nestle', verbose=False)
self.assertAlmostEqual(np.mean(result.samples), dL,
delta=np.std(result.samples))
......
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