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

Fixing buggy behaviour of verify_use_ratio with change samples params

parent 658bb5a8
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -164,6 +164,14 @@ class Sampler(object):
.format(e, self.likelihood.parameters))
def _verify_use_ratio(self):
# This is repeated from verify_parameters
for key in self.priors:
try:
self.likelihood.parameters[key] = self.priors[key].sample()
except AttributeError as e:
logging.warning('Cannot sample from {}, {}'.format(key, e))
if self.use_ratio is False:
logging.debug("use_ratio set to False")
return
......
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