Commit 5dd2b68d authored by Gregory Ashton's avatar Gregory Ashton

Fix breaking C.I. tests

Removes the live_plot kwarg which seems to be causing the C.I testing to
fail
parent a81cdf23
......@@ -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