Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
lscsoft
bilby
Commits
cc79c29d
Commit
cc79c29d
authored
May 29, 2018
by
Gregory Ashton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove obsolete outdir and label
parent
3a5771ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
tupak/result.py
tupak/result.py
+4
-5
tupak/sampler.py
tupak/sampler.py
+1
-1
No files found.
tupak/result.py
View file @
cc79c29d
...
...
@@ -77,15 +77,14 @@ class Result(dict):
logging
.
debug
(
"Unable to decode item"
)
return
item
def
get_result_dictionary
(
self
):
return
dict
(
self
)
def
save_to_file
(
self
,
outdir
,
label
):
def
save_to_file
(
self
):
""" Writes the Result to a deepdish h5 file """
file_name
=
result_file_name
(
outdir
,
label
)
if
os
.
path
.
isdir
(
outdir
)
is
False
:
os
.
makedirs
(
outdir
)
file_name
=
result_file_name
(
self
.
outdir
,
self
.
label
)
if
os
.
path
.
isdir
(
self
.
outdir
)
is
False
:
os
.
makedirs
(
self
.
outdir
)
if
os
.
path
.
isfile
(
file_name
):
logging
.
info
(
'Renaming existing file {} to {}.old'
.
format
(
file_name
,
...
...
tupak/sampler.py
View file @
cc79c29d
...
...
@@ -526,7 +526,7 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir',
# result.prior = prior # Removed as this breaks the saving of the data
result
.
samples_to_data_frame
(
likelihood
=
likelihood
,
priors
=
priors
,
conversion_function
=
conversion_function
)
result
.
kwargs
=
sampler
.
kwargs
result
.
save_to_file
(
outdir
=
outdir
,
label
=
label
)
result
.
save_to_file
()
if
plot
:
result
.
plot_corner
()
return
result
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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