Commit d8b3eedd authored by Gregory Ashton's avatar Gregory Ashton
Browse files

A few minor fixes

- Set plot=False during tests
- Remove verbose=True from nestle calls
parent e33bc037
Pipeline #18689 passed with stages
in 5 minutes and 12 seconds
......@@ -41,7 +41,7 @@ signal = waveform_generator.frequency_domain_strain()
IFO = tupak.detector.get_interferometer_with_fake_noise_and_injection(name='H1', injection_polarizations=signal,
injection_parameters=simulation_parameters,
time_duration=time_duration,
time_duration=time_duration, plot=False,
sampling_frequency=sampling_frequency)
hf_signal_and_noise = IFO.data
......
......@@ -57,7 +57,7 @@ class Test(unittest.TestCase):
priors['luminosity_distance'] = tupak.prior.Uniform(
name='luminosity_distance', minimum=dL - 10, maximum=dL + 10)
result = tupak.sampler.run_sampler(likelihood, priors, sampler='nestle', verbose=False)
result = tupak.sampler.run_sampler(likelihood, priors, sampler='nestle')
self.assertAlmostEqual(np.mean(result.samples), dL, delta=np.std(result.samples))
......
......@@ -206,6 +206,7 @@ class Nestle(Sampler):
self.external_sampler_function = nestle.sample
if self.kwargs.get('verbose', True):
self.kwargs['callback'] = nestle.print_progress
self.kwargs.pop('verbose')
self.verify_kwargs_against_external_sampler_function()
out = self.external_sampler_function(
......
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