doc style change

This commit is contained in:
Nicolo Fusi 2013-01-31 10:57:43 +00:00
parent 0224e700f4
commit 9c88687634
33 changed files with 13118 additions and 15 deletions

View file

@ -94,7 +94,7 @@ class parameterised(object):
Other objects are passed through - i.e. integers which were'nt meant for grepping
"""
if type(expr) is str:
if type(expr) in [str, np.string_, np.str]:
expr = re.compile(expr)
return np.nonzero([expr.search(name) for name in self._get_param_names()])[0]
elif type(expr) is re._pattern_type: