python3x compatibility (need to convert range to a list to allow elements to be deleted)

This commit is contained in:
Michael T Smith 2017-06-27 13:22:56 +01:00
parent acb12ffa7c
commit 209b92b817

View file

@ -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__: