regular expressions now match rather than search

This commit is contained in:
James Hensman 2013-06-04 14:36:17 +01:00
parent 26b4cd6c4f
commit aa8b75d0c5
5 changed files with 42 additions and 47 deletions

View file

@ -212,7 +212,7 @@ class model(parameterised):
currently_constrained = self.all_constrained_indices()
to_make_positive = []
for s in positive_strings:
for i in self.grep_param_names(s):
for i in self.grep_param_names(".*"+s):
if not (i in currently_constrained):
#to_make_positive.append(re.escape(param_names[i]))
to_make_positive.append(i)