From 7ca8c69ccd3542bfd2f55f1f877cb0bd470c350c Mon Sep 17 00:00:00 2001
From: MoritzThomasHuebner <email@moritz-huebner.de>
Date: Thu, 23 Aug 2018 12:31:02 +1000
Subject: [PATCH] Corrected an incorrect cast

---
 tupak/core/likelihood.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tupak/core/likelihood.py b/tupak/core/likelihood.py
index 562b79898..01add79f1 100644
--- a/tupak/core/likelihood.py
+++ b/tupak/core/likelihood.py
@@ -251,7 +251,7 @@ class ExponentialLikelihood(Analytical1DLikelihood):
 
     @y.setter
     def y(self, y):
-        if isinstance(y, int):
+        if not isinstance(y, np.ndarray):
             y = np.array([y])
         if np.any(y < 0):
             raise ValueError("Data must be non-negative")
-- 
GitLab