diff --git a/tupak/core/likelihood.py b/tupak/core/likelihood.py
index 5ee8d4a8d5f2671714ff7e0f3b42340946985c1c..0c367564a12912dce1e9681f83f5807fe35db373 100644
--- a/tupak/core/likelihood.py
+++ b/tupak/core/likelihood.py
@@ -87,7 +87,7 @@ class Analytical1DLikelihood(Likelihood):
 
     @x.setter
     def x(self, x):
-        if isinstance(x, int):
+        if isinstance(x, int) or isinstance(x, float):
             x = np.array([x])
         self.__x = x
 
@@ -97,7 +97,7 @@ class Analytical1DLikelihood(Likelihood):
 
     @y.setter
     def y(self, y):
-        if isinstance(y, int):
+        if isinstance(x, int) or isinstance(x, float):
             y = np.array([y])
         self.__y = y