From 5253ba86c7b8fbed02d2377fad0f1607f4077171 Mon Sep 17 00:00:00 2001
From: Moritz Huebner <moritz.huebner@ligo.org>
Date: Sat, 4 May 2019 01:23:10 -0500
Subject: [PATCH] Fix gaussian example

---
 examples/other_examples/gaussian_example.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/other_examples/gaussian_example.py b/examples/other_examples/gaussian_example.py
index 2d9e5193..78d960e8 100644
--- a/examples/other_examples/gaussian_example.py
+++ b/examples/other_examples/gaussian_example.py
@@ -31,9 +31,9 @@ class SimpleGaussianLikelihood(bilby.Likelihood):
         data: array_like
             The data to analyse
         """
+        bilby.Likelihood.__init__(parameters={'mu': None, 'sigma': None})
         self.data = data
         self.N = len(data)
-        self.parameters = {'mu': None, 'sigma': None}
 
     def log_likelihood(self):
         mu = self.parameters['mu']
-- 
GitLab