diff --git a/examples/injection_examples/basic_tutorial.py b/examples/injection_examples/basic_tutorial.py index f2cf31e6b3bc1817356295da8f2a2423b43cc8ba..c3548b4d41ad42bd5584c2bf863f00ffd79b385e 100644 --- a/examples/injection_examples/basic_tutorial.py +++ b/examples/injection_examples/basic_tutorial.py @@ -74,4 +74,4 @@ result = tupak.run_sampler(likelihood=likelihood, priors=priors, sampler='dynest # make some plots of the outputs result.plot_corner() -print(result) + diff --git a/examples/injection_examples/basic_tutorial_dist_time_phase_marg.py b/examples/injection_examples/basic_tutorial_dist_time_phase_marg.py index f28e35d1017a0c35b46695e3656ab23728b73168..2d90386e16a2692f709f86106cf2cd7b64feb63c 100644 --- a/examples/injection_examples/basic_tutorial_dist_time_phase_marg.py +++ b/examples/injection_examples/basic_tutorial_dist_time_phase_marg.py @@ -71,4 +71,4 @@ result = tupak.run_sampler(likelihood=likelihood, priors=priors, sampler='dynest # make some plots of the outputs result.plot_corner() -print(result) + diff --git a/examples/injection_examples/basic_tutorial_time_phase_marg.py b/examples/injection_examples/basic_tutorial_time_phase_marg.py index 47768d1a682d6c9e094e6047673fcf748c66382d..3f7525db6fc9daf48de68828f3bb4c65b05414fd 100644 --- a/examples/injection_examples/basic_tutorial_time_phase_marg.py +++ b/examples/injection_examples/basic_tutorial_time_phase_marg.py @@ -70,4 +70,4 @@ result = tupak.run_sampler(likelihood=likelihood, priors=priors, sampler='dynest # make some plots of the outputs result.plot_corner() -print(result) + diff --git a/examples/injection_examples/change_sampled_parameters.py b/examples/injection_examples/change_sampled_parameters.py index 1b774774c1d51a62518ecae6d3f9f0be15f7e9fe..d5766e5475075c4bbf969fc92127d33dd3d8cba7 100644 --- a/examples/injection_examples/change_sampled_parameters.py +++ b/examples/injection_examples/change_sampled_parameters.py @@ -58,4 +58,4 @@ result = tupak.core.sampler.run_sampler(likelihood=likelihood, priors=priors, sa injection_parameters=injection_parameters, label='DifferentParameters', outdir=outdir, conversion_function=tupak.gw.conversion.generate_all_bbh_parameters) result.plot_corner() -print(result) + diff --git a/examples/injection_examples/create_your_own_source_model.py b/examples/injection_examples/create_your_own_source_model.py index 15f2adfb09a754ebd42952943236f00b63e43200..ad66821e101de9e7df2f3a5c02acbdf3ea7fad83 100644 --- a/examples/injection_examples/create_your_own_source_model.py +++ b/examples/injection_examples/create_your_own_source_model.py @@ -51,4 +51,4 @@ result = tupak.core.sampler.run_sampler( likelihood, prior, sampler='dynesty', outdir=outdir, label=label, resume=False, sample='unif', injection_parameters=injection_parameters) result.plot_corner() -print(result) + diff --git a/examples/injection_examples/create_your_own_time_domain_source_model.py b/examples/injection_examples/create_your_own_time_domain_source_model.py index 588aa5315b6109bacdb6372a6f969e0d2196ef87..054ba5773f8b63eb643b4acb8580fb5822f4d39a 100644 --- a/examples/injection_examples/create_your_own_time_domain_source_model.py +++ b/examples/injection_examples/create_your_own_time_domain_source_model.py @@ -72,4 +72,4 @@ result = tupak.core.sampler.run_sampler(likelihood, prior, sampler='dynesty', np outdir=outdir, label=label) result.plot_corner() -print(result) + diff --git a/examples/injection_examples/how_to_specify_the_prior.py b/examples/injection_examples/how_to_specify_the_prior.py index 5554f18e21e5b7bb54c9652fb02532fa16f23499..08ffbc664d069cbdef949a5e3a23ca2c808f7243 100644 --- a/examples/injection_examples/how_to_specify_the_prior.py +++ b/examples/injection_examples/how_to_specify_the_prior.py @@ -64,4 +64,4 @@ likelihood = tupak.GravitationalWaveTransient(interferometers=IFOs, waveform_gen result = tupak.run_sampler(likelihood=likelihood, priors=priors, sampler='dynesty', injection_parameters=injection_parameters, outdir=outdir, label='specify_prior') result.plot_corner() -print(result) + diff --git a/examples/injection_examples/marginalized_likelihood.py b/examples/injection_examples/marginalized_likelihood.py index e819e8d5bb66e37fa7c79cdbf9faf7663ab140b7..9e9f328d8244bf7add54fcd47dc1070dbe2cf08d 100644 --- a/examples/injection_examples/marginalized_likelihood.py +++ b/examples/injection_examples/marginalized_likelihood.py @@ -50,4 +50,4 @@ likelihood = tupak.GravitationalWaveTransient( result = tupak.run_sampler(likelihood=likelihood, priors=priors, sampler='dynesty', injection_parameters=injection_parameters, outdir=outdir, label='BasicTutorial') result.plot_corner() -print(result) + diff --git a/examples/injection_examples/sine_gaussian_example.py b/examples/injection_examples/sine_gaussian_example.py index b1702e773b73b72b0fd1e5c5c743e75fdc728706..adc1e9bbb1eb7dd17b147d32d04563a7c84f2c5d 100644 --- a/examples/injection_examples/sine_gaussian_example.py +++ b/examples/injection_examples/sine_gaussian_example.py @@ -63,7 +63,7 @@ result = tupak.core.sampler.run_sampler(likelihood=likelihood, priors=priors, sa # make some plots of the outputs result.plot_corner() -print(result) + diff --git a/examples/open_data_examples/GW150914.py b/examples/open_data_examples/GW150914.py index 6ccb8a00f23d24c1f966e8813925b654fee54176..861315508f6d2dc82ed30abfc2995d4100ba8ba8 100644 --- a/examples/open_data_examples/GW150914.py +++ b/examples/open_data_examples/GW150914.py @@ -51,4 +51,4 @@ likelihood = tupak.gw.likelihood.GravitationalWaveTransient(interferometers, wav result = tupak.run_sampler(likelihood, prior, sampler='dynesty', outdir=outdir, label=label) result.plot_corner() -print(result) + diff --git a/examples/other_examples/gaussian_example.py b/examples/other_examples/gaussian_example.py index 1cf4a691b20574e46fb5458aa282e4360204c2a4..14f049287bd86219dd3ac7112413ef5c0743eaee 100644 --- a/examples/other_examples/gaussian_example.py +++ b/examples/other_examples/gaussian_example.py @@ -47,10 +47,10 @@ class SimpleGaussianLikelihood(tupak.Likelihood): likelihood = SimpleGaussianLikelihood(data) priors = dict(mu=tupak.core.prior.Uniform(0, 5, 'mu'), sigma=tupak.core.prior.Uniform(0, 10, 'sigma')) +priors['mu'] = 1 # And run sampler result = tupak.run_sampler( likelihood=likelihood, priors=priors, sampler='dynesty', npoints=500, walks=10, outdir=outdir, label=label) result.plot_corner() -print(result) diff --git a/examples/other_examples/linear_regression.py b/examples/other_examples/linear_regression.py index 6df18c9304b31da6bc6fa654b64f8d130dfc498b..9a601fe00fb50ce6a786c26c9ea43f892cdcd93e 100644 --- a/examples/other_examples/linear_regression.py +++ b/examples/other_examples/linear_regression.py @@ -101,4 +101,3 @@ result = tupak.run_sampler( walks=10, injection_parameters=injection_parameters, outdir=outdir, label=label) result.plot_corner() -print(result) diff --git a/examples/other_examples/linear_regression_unknown_noise.py b/examples/other_examples/linear_regression_unknown_noise.py index 1f21be4cee7eb3bbe401e2a1f2914a0914b4e175..88d06b1de9a820774f31c2eeff7551b0c808ece1 100644 --- a/examples/other_examples/linear_regression_unknown_noise.py +++ b/examples/other_examples/linear_regression_unknown_noise.py @@ -110,4 +110,3 @@ result = tupak.run_sampler( walks=10, injection_parameters=injection_parameters, outdir=outdir, label=label) result.plot_corner() -print(result)