Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
bilby
Commits
e33bc037
There was a problem fetching the pipeline summary.
Commit
e33bc037
authored
6 years ago
by
moritz
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
fbb826c0
1d6bfdbe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tupak/result.py
+6
-1
6 additions, 1 deletion
tupak/result.py
tupak/sampler.py
+1
-1
1 addition, 1 deletion
tupak/sampler.py
with
7 additions
and
2 deletions
tupak/result.py
+
6
−
1
View file @
e33bc037
...
...
@@ -37,7 +37,12 @@ class Result(dict):
os
.
rename
(
file_name
,
file_name
+
'
.old
'
)
logging
.
info
(
"
Saving result to {}
"
.
format
(
file_name
))
deepdish
.
io
.
save
(
file_name
,
self
)
try
:
deepdish
.
io
.
save
(
file_name
,
self
)
except
Exception
as
e
:
logging
.
error
(
"
\n\n
Saving the data has failed with the following message:
\n
{}
\n\n
"
.
format
(
e
))
def
plot_corner
(
self
,
save
=
True
,
**
kwargs
):
"""
Plot a corner-plot using chain-consumer
...
...
This diff is collapsed.
Click to expand it.
tupak/sampler.py
+
1
−
1
View file @
e33bc037
...
...
@@ -401,7 +401,7 @@ def run_sampler(likelihood, priors=None, label='label', outdir='outdir',
result
.
log_bayes_factor
=
result
.
logz
-
result
.
noise_logz
result
.
injection_parameters
=
injection_parameters
result
.
fixed_parameter_keys
=
[
key
for
key
in
priors
if
isinstance
(
key
,
prior
.
DeltaFunction
)]
result
.
prior
=
prior
s
#
result.prior = prior
# Removed as this breaks the saving of the data
result
.
samples_to_data_frame
()
result
.
save_to_file
(
outdir
=
outdir
,
label
=
label
)
return
result
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment