Skip to content
Snippets Groups Projects
Commit b65555e3 authored by Michael Williams's avatar Michael Williams Committed by Gregory Ashton
Browse files

Fix likelihood count for Dynesty

parent 40957da0
No related branches found
No related tags found
No related merge requests found
......@@ -690,6 +690,16 @@ class Dynesty(NestedSampler):
"""
return self.priors.rescale(self._search_parameter_keys, theta)
def calc_likelihood_count(self):
if self.likelihood_benchmark:
if hasattr(self, 'sampler'):
self.result.num_likelihood_evaluations = \
getattr(self.sampler, 'ncall', 0)
else:
self.result.num_likelihood_evaluations = 0
else:
return None
def sample_rwalk_bilby(args):
""" Modified bilby-implemented version of dynesty.sampling.sample_rwalk """
......
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