Commit 67914930 authored by Gregory Ashton's avatar Gregory Ashton

Merge branch '376-pymc3-failing-c-i-tests' into 'master'

Resolve "pymc3 failing C.I. tests"

Closes #376

See merge request !510
parents a81cdf23 5dd2b68d
Pipeline #65226 passed with stages
in 17 minutes and 18 seconds
......@@ -57,8 +57,8 @@ class Pymc3(MCMCSampler):
default_kwargs = dict(
draws=500, step=None, init='auto', n_init=200000, start=None, trace=None, chain_idx=0,
chains=2, cores=1, tune=500, nuts_kwargs=None, step_kwargs=None, progressbar=True,
model=None, random_seed=None, live_plot=False, discard_tuned_samples=True,
live_plot_kwargs=None, compute_convergence_checks=True)
model=None, random_seed=None, discard_tuned_samples=True,
compute_convergence_checks=True)
def __init__(self, likelihood, priors, outdir='outdir', label='label',
use_ratio=False, plot=False,
......
......@@ -370,16 +370,16 @@ class TestPyMC3(unittest.TestCase):
expected = dict(
draws=500, step=None, init='auto', n_init=200000, start=None, trace=None, chain_idx=0,
chains=2, cores=1, tune=500, nuts_kwargs=None, step_kwargs=None, progressbar=True,
model=None, random_seed=None, live_plot=False, discard_tuned_samples=True,
live_plot_kwargs=None, compute_convergence_checks=True)
model=None, random_seed=None, discard_tuned_samples=True,
compute_convergence_checks=True)
self.assertDictEqual(expected, self.sampler.kwargs)
def test_translate_kwargs(self):
expected = dict(
draws=500, step=None, init='auto', n_init=200000, start=None, trace=None, chain_idx=0,
chains=2, cores=1, tune=500, nuts_kwargs=None, step_kwargs=None, progressbar=True,
model=None, random_seed=None, live_plot=False, discard_tuned_samples=True,
live_plot_kwargs=None, compute_convergence_checks=True)
model=None, random_seed=None, discard_tuned_samples=True,
compute_convergence_checks=True)
self.sampler.kwargs['draws'] = 123
for equiv in bilby.core.sampler.base_sampler.NestedSampler.npoints_equiv_kwargs:
new_kwargs = self.sampler.kwargs.copy()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment