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

Fix minor bug in double underscores

parent 49034427
No related branches found
No related tags found
1 merge request!39Adding cached data check
...@@ -69,7 +69,7 @@ class Sampler(object): ...@@ -69,7 +69,7 @@ class Sampler(object):
def result(self, result): def result(self, result):
if result is None: if result is None:
self.__result = Result() self.__result = Result()
self.__result.__search_parameter_keys = self.__search_parameter_keys self.__result.search_parameter_keys = self.__search_parameter_keys
self.__result.parameter_labels = [ self.__result.parameter_labels = [
self.priors[k].latex_label for k in self.priors[k].latex_label for k in
self.__search_parameter_keys] self.__search_parameter_keys]
...@@ -443,7 +443,7 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir', ...@@ -443,7 +443,7 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir',
else: else:
result.log_bayes_factor = result.logz - result.noise_logz result.log_bayes_factor = result.logz - result.noise_logz
result.injection_parameters = injection_parameters result.injection_parameters = injection_parameters
result.__fixed_parameter_keys = [key for key in priors if isinstance(key, prior.DeltaFunction)] result.fixed_parameter_keys = [key for key in priors if isinstance(key, prior.DeltaFunction)]
result.priors = priors result.priors = priors
result.kwargs = sampler.kwargs result.kwargs = sampler.kwargs
result.samples_to_data_frame() result.samples_to_data_frame()
......
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