From 7561c4c2326f9c0a1ece372fdb4ae9cd458a7e93 Mon Sep 17 00:00:00 2001 From: James Hensman Date: Thu, 2 May 2013 16:13:39 +0100 Subject: [PATCH] fixed a bug in all_constrained_indices --- GPy/core/parameterised.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/core/parameterised.py b/GPy/core/parameterised.py index 2e245c5a..bca242f6 100644 --- a/GPy/core/parameterised.py +++ b/GPy/core/parameterised.py @@ -191,8 +191,8 @@ class parameterised(object): self.constrain(which, transformations.logistic(lower, upper)) def all_constrained_indices(self): - if len(self.constrained_indices): - return np.hstack(self.constrained_indices) + if len(self.constrained_indices) or len(self.fixed_indices): + return np.hstack(self.constrained_indices + self.fixed_indices) else: return np.empty(shape=(0,))