changed the behaviour of checkgrad

checkgrad usd to check the passed string (for name matching) against the
list of _get_param_names(). Then it would index along
_get_param_names_transformed()!

this led to inconsistensies when fixed or tied variables were used,
which screwed up the ordering of the variable names.

We now match against _get_param_names_transformed().
This commit is contained in:
James Hensman 2013-06-05 12:08:33 +01:00
parent 903e66486d
commit dea4359b4e
3 changed files with 48 additions and 29 deletions

View file

@ -392,7 +392,11 @@ class model(parameterised):
if target_param is None:
param_list = range(len(x))
else:
param_list = self.grep_param_names(target_param)
param_list = self.grep_param_names(target_param, transformed=True, search=True)
if not param_list:
print "No free parameters to check"
return
for i in param_list:
xx = x.copy()