Skip to content
Snippets Groups Projects
Commit 38a12c64 authored by MoritzThomasHuebner's avatar MoritzThomasHuebner
Browse files

Simplified some code in __init__ of GaussianLikelihood

parent c1765d2a
No related branches found
No related tags found
1 merge request!115Various improvements to the GaussianLikelihood
......@@ -67,9 +67,7 @@ class GaussianLikelihood(Likelihood):
"""
parameters = self._infer_parameters_from_function(function)
self.parameters = dict.fromkeys(parameters)
Likelihood.__init__(self, self.parameters)
Likelihood.__init__(self, dict.fromkeys(parameters))
self.x = x
self.y = y
......@@ -86,7 +84,7 @@ class GaussianLikelihood(Likelihood):
""" Infers the arguments of function (except the first arg which is
assumed to be the dep. variable
"""
parameters = inspect.getargspec(function).args
parameters = inspect.getargspec(func).args
parameters.pop(0)
return parameters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment