mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
doc style change
This commit is contained in:
parent
0224e700f4
commit
9c88687634
33 changed files with 13118 additions and 15 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue