From 6f78a724fca7835b4c0dbf90f47be250ad1a2d2a Mon Sep 17 00:00:00 2001 From: Zhenwen Dai Date: Mon, 3 Nov 2014 17:37:33 +0000 Subject: [PATCH] a bug fix for set_XY --- GPy/core/gp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/core/gp.py b/GPy/core/gp.py index 7121c539..7835f8b9 100644 --- a/GPy/core/gp.py +++ b/GPy/core/gp.py @@ -114,7 +114,7 @@ class GP(Model): # LVM models from ..core.parameterization.variational import VariationalPosterior if isinstance(self.X, VariationalPosterior): - assert isinstance(X, type(self.X), "The given X must have the same type as the X in the model!") + assert isinstance(X, type(self.X)), "The given X must have the same type as the X in the model!" self.unlink_parameter(self.X) self.X = X self.link_parameters(self.X)