Skip to content
Snippets Groups Projects
Commit c1765d2a authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Fix python 3 issue

keys() now returns a dict_keys object which is a view. So when the
actual keys are updated, so is this, but we do not want that behaviour.
parent b159eb7d
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ class GaussianLikelihood(Likelihood):
self.function = function
# Check if sigma was provided, if not it is a parameter
self.function_keys = self.parameters.keys()
self.function_keys = list(self.parameters.keys())
if self.sigma is None:
self.parameters['sigma'] = None
......
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