fixed a bug in all_constrained_indices

This commit is contained in:
James Hensman 2013-05-02 16:13:39 +01:00
parent 9ad17cb811
commit 7561c4c232

View file

@ -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,))