Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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(
......
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