Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Rhiannon Udall
bilby
Commits
a82d0b84
Commit
a82d0b84
authored
Jun 17, 2019
by
Moritz
Browse files
Unified changes with Rhys's MR
parent
d288b17f
Changes
2
Hide whitespace changes
Inline
Side-by-side
bilby/core/result.py
View file @
a82d0b84
...
...
@@ -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
):
...
...
bilby/core/sampler/dynesty.py
View file @
a82d0b84
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment