From 8c52644ed0f78e8d5471d8c6f77c834fb6f11488 Mon Sep 17 00:00:00 2001
From: Matthew Pitkin <matthew.pitkin@ligo.org>
Date: Thu, 2 Aug 2018 15:37:30 +0100
Subject: [PATCH] likelihood.py: fix install error

---
 tupak/core/likelihood.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tupak/core/likelihood.py b/tupak/core/likelihood.py
index ed30a27c1..e5b2dd053 100644
--- a/tupak/core/likelihood.py
+++ b/tupak/core/likelihood.py
@@ -188,15 +188,15 @@ class PoissonLikelihood(Likelihood):
                                   "value!"))
 
             # Return the summed log likelihood
-            return -self.N*rate + np.sum(self.counts*np.log(rate)) -
-                   self.sumlogfactorial
+            return (-self.N*rate + np.sum(self.counts*np.log(rate))
+                    - self.sumlogfactorial)
         elif isinstance(rate, np.ndarray):
             # check rates are positive
             if np.any(rate < 0.):
-                raise ValueError(("Poisson rate function returns a negative")),
+                raise ValueError(("Poisson rate function returns a negative",
                                   " value!"))
 
-            return np.sum(-rate + self.counts*np.log(rate)) - 
-                   self.sumlogfactorial
+            return (np.sum(-rate + self.counts*np.log(rate))
+                    - self.sumlogfactorial)
         else:
             raise ValueError("Poisson rate function returns wrong value type!")
\ No newline at end of file
-- 
GitLab