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
deb24212
Commit
deb24212
authored
6 years ago
by
moritz
Browse files
Options
Downloads
Patches
Plain Diff
Moritz Huebner: Some PEP8 and typos
parent
c0d1cf36
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tupak/result.py
+9
-9
9 additions, 9 deletions
tupak/result.py
with
9 additions
and
9 deletions
tupak/result.py
+
9
−
9
View file @
deb24212
...
...
@@ -66,7 +66,7 @@ class Result(dict):
return
fig
def
plot_walks
(
self
,
save
=
True
,
**
kwargs
):
"""
Plot the chain walks
t
using chain-consumer
"""
Plot the chain walks using chain-consumer
Parameters
----------
...
...
@@ -91,7 +91,7 @@ class Result(dict):
return
fig
def
plot_distributions
(
self
,
save
=
True
,
**
kwargs
):
"""
Plot the chain walks
t
using chain-consumer
"""
Plot the chain walks using chain-consumer
Parameters
----------
...
...
@@ -143,15 +143,15 @@ class Result(dict):
:return:
"""
self
.
posterior
[
'
mass_chirp
'
]
=
(
self
.
posterior
.
mass_1
*
self
.
posterior
.
mass_2
)
**
0.6
\
/
(
self
.
posterior
.
mass_1
+
self
.
posterior
.
mass_2
)
**
0.2
self
.
posterior
[
'
mass_chirp
'
]
=
(
self
.
posterior
.
mass_1
*
self
.
posterior
.
mass_2
)
**
0.6
/
(
self
.
posterior
.
mass_1
+
self
.
posterior
.
mass_2
)
**
0.2
self
.
posterior
[
'
q
'
]
=
self
.
posterior
.
mass_2
/
self
.
posterior
.
mass_1
self
.
posterior
[
'
eta
'
]
=
(
self
.
posterior
.
mass_1
*
self
.
posterior
.
mass_2
)
\
/
(
self
.
posterior
.
mass_1
+
self
.
posterior
.
mass_2
)
**
2
self
.
posterior
[
'
eta
'
]
=
(
self
.
posterior
.
mass_1
*
self
.
posterior
.
mass_2
)
/
(
self
.
posterior
.
mass_1
+
self
.
posterior
.
mass_2
)
**
2
self
.
posterior
[
'
chi_eff
'
]
=
(
self
.
posterior
.
a_1
*
np
.
cos
(
self
.
posterior
.
tilt_1
)
+
self
.
posterior
.
q
*
self
.
posterior
.
a_2
*
np
.
cos
(
self
.
posterior
.
tilt_2
))
\
/
(
1
+
self
.
posterior
.
q
)
+
self
.
posterior
.
q
*
self
.
posterior
.
a_2
*
np
.
cos
(
self
.
posterior
.
tilt_2
))
/
(
1
+
self
.
posterior
.
q
)
self
.
posterior
[
'
chi_p
'
]
=
max
(
self
.
posterior
.
a_1
*
np
.
sin
(
self
.
posterior
.
tilt_1
),
(
4
*
self
.
posterior
.
q
+
3
)
/
(
3
*
self
.
posterior
.
q
+
4
)
*
self
.
posterior
.
q
*
self
.
posterior
.
a_2
*
np
.
sin
(
self
.
posterior
.
tilt_2
))
\ No newline at end of file
*
self
.
posterior
.
a_2
*
np
.
sin
(
self
.
posterior
.
tilt_2
))
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