Got rid of foo

This commit is contained in:
Alan Saul 2013-03-11 18:14:23 +00:00
parent 387ee97d73
commit 2a1b5f94c8
2 changed files with 1 additions and 2 deletions

View file

@ -55,7 +55,6 @@ class rbf(kernpart):
self._X, self._X2, self._params = np.empty(shape=(3,1)) self._X, self._X2, self._params = np.empty(shape=(3,1))
def _get_params(self): def _get_params(self):
foo
return np.hstack((self.variance,self.lengthscale)) return np.hstack((self.variance,self.lengthscale))
def _set_params(self,x): def _set_params(self,x):

View file

@ -46,7 +46,7 @@ def test_models():
print "MODULE", module_examples print "MODULE", module_examples
print "Before" print "Before"
print inspect.getmembers(module_examples, predicate=inspect.isfunction) print inspect.getmembers(module_examples, predicate=inspect.isfunction)
functions = [ func for func in inspect.getmembers(module_examples, predicate=inspect.isfunction) if func[0].startswith('_') is False ] functions = [ func for func in inspect.getmembers(module_examples, predicate=inspect.isfunction) if func[0].startswith('_') is False ][::-1]
print "After" print "After"
print functions print functions
for example in functions: for example in functions: