minor/pep8

This commit is contained in:
Max Zwiessele 2013-07-29 15:29:00 +01:00
parent 92c6e652d9
commit 3051c2a7e5
3 changed files with 14 additions and 11 deletions

View file

@ -477,7 +477,7 @@ class Model(Parameterized):
if not hasattr(self, 'kern'):
raise ValueError, "this Model has no kernel"
k = [p for p in self.kern.parts if p.name in ['rbf', 'linear','rbf_inv']]
k = [p for p in self.kern.parts if p.name in ['rbf', 'linear', 'rbf_inv']]
if (not len(k) == 1) or (not k[0].ARD):
raise ValueError, "cannot determine sensitivity for this kernel"
k = k[0]