Commit a82d0b84 authored by Moritz's avatar Moritz
Browse files

Unified changes with Rhys's MR

parent d288b17f
......@@ -322,7 +322,8 @@ class Result(object):
return cls(label=label, outdir=outdir, sampler='dynesty',
search_parameter_keys=search_parameter_keys, posterior=posterior,
samples=samples, nested_samples=nested_samples, log_evidence=log_evidence,
log_evidence_err=log_evidence_err, log_likelihood_evaluations=log_likelihood_evaluations, **kwargs)
log_evidence_err=log_evidence_err, log_likelihood_evaluations=log_likelihood_evaluations,
**kwargs)
@classmethod
def from_dynesty_result_file(cls, outdir, label, search_parameter_keys, **kwargs):
......
......@@ -228,7 +228,7 @@ class Dynesty(NestedSampler):
check_directory_exists_and_if_not_mkdir(self.outdir)
Dynesty._dump_dynesty_result(dynesty_result, self.label, self.outdir)
self.calc_likelihood_count()
self._write_result(dynesty_result=dynesty_result)
if self.plot:
......@@ -283,6 +283,7 @@ class Dynesty(NestedSampler):
sampler_kwargs=self.result.sampler_kwargs,
meta_data=self.result.meta_data,
log_prior_evaluations=self.result.log_prior_evaluations,
num_likelihood_evaluations=self.result.num_likelihood_evaluations,
sampling_time=self.result.sampling_time, version=self.result.version)
def read_saved_state(self, continuing=False):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment