From b3fe19fa0b76017991b5b3450094eacbc814afa9 Mon Sep 17 00:00:00 2001 From: Ricardo Date: Tue, 17 Sep 2013 16:53:15 +0100 Subject: [PATCH] Comments added to assertions --- GPy/core/gp.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/GPy/core/gp.py b/GPy/core/gp.py index 68d4376e..63903242 100644 --- a/GPy/core/gp.py +++ b/GPy/core/gp.py @@ -176,7 +176,7 @@ class GP(GPBase): .. Note:: For multiple output models only """ - assert hasattr(self,'multioutput') + assert hasattr(self,'multioutput'), 'This function is for multiple output models only.' index = np.ones_like(Xnew)*output Xnew = np.hstack((Xnew,index)) @@ -204,8 +204,7 @@ class GP(GPBase): .. Note:: For multiple output models only """ - assert hasattr(self,'multioutput') - + assert hasattr(self,'multioutput'), 'This function is for multiple output models only.' # creates an index column and appends it to _Xnew index = np.ones_like(_Xnew)*output _Xnew = np.hstack((_Xnew,index))