From fbbf0f5fd9eb9a0b8df29ea0e9b407aab8b6f9c5 Mon Sep 17 00:00:00 2001
From: Gregory Ashton <gregory.ashton@ligo.org>
Date: Mon, 5 Nov 2018 13:05:44 +1100
Subject: [PATCH] Remove the obsolete "add_multiple_results.py" example

This example is no longer functional and should have been removed in
!241
---
 .../other_examples/add_multiple_results.py    | 42 -------------------
 1 file changed, 42 deletions(-)
 delete mode 100644 examples/other_examples/add_multiple_results.py

diff --git a/examples/other_examples/add_multiple_results.py b/examples/other_examples/add_multiple_results.py
deleted file mode 100644
index 83f57b1a6..000000000
--- a/examples/other_examples/add_multiple_results.py
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/env python
-"""
-An example of running two sets of posterior sample estimations and adding them
-"""
-from __future__ import division
-import bilby
-import numpy as np
-
-outdir = 'outdir'
-
-
-def model(time, m, c):
-    return time * m + c
-
-
-injection_parameters = dict(m=0.5, c=0.2)
-sigma = 1
-sampling_frequency = 10
-time_duration = 10
-time = np.arange(0, time_duration, 1 / sampling_frequency)
-N = len(time)
-data = model(time, **injection_parameters) + np.random.normal(0, sigma, N)
-
-likelihood = bilby.core.likelihood.GaussianLikelihood(
-    time, data, model, sigma=sigma)
-
-priors = dict()
-priors['m'] = bilby.core.prior.Uniform(0, 1, 'm')
-priors['c'] = bilby.core.prior.Uniform(-2, 2, 'c')
-
-resultA = bilby.run_sampler(
-    likelihood=likelihood, priors=priors, sampler='emcee', nsteps=1000,
-    nburn=500, outdir=outdir, label='A')
-
-resultB = bilby.run_sampler(
-    likelihood=likelihood, priors=priors, sampler='emcee', nsteps=1000,
-    nburn=500, outdir=outdir, label='B')
-
-resultA.plot_walkers()
-result = resultA + resultB
-result.plot_corner()
-print(result)
-- 
GitLab