From 209b92b8177709a9354874110e06834148685aee Mon Sep 17 00:00:00 2001 From: Michael T Smith Date: Tue, 27 Jun 2017 13:22:56 +0100 Subject: [PATCH] python3x compatibility (need to convert range to a list to allow elements to be deleted) --- GPy/core/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/core/model.py b/GPy/core/model.py index 8726d450..1e4a9955 100644 --- a/GPy/core/model.py +++ b/GPy/core/model.py @@ -182,7 +182,7 @@ class Model(ParamzModel, Priorizable): f[self.constraints[transformations.__fixed__]] = transformations.FIXED #TODO Check: Presumably only one constraint applies to each parameter? new_t_points = [] - todo = range(0,sum(f)) + todo = list(range(0,sum(f))) new_t_points = np.zeros_like(transformed_points) for c, ind in self.constraints.items(): if c != transformations.__fixed__: