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
f4a4730c
Commit
f4a4730c
authored
6 years ago
by
Colm Talbot
Browse files
Options
Downloads
Patches
Plain Diff
flake fixes
parent
0d2de44e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!222
Resolve "BNS: ability to sample in and convert to \tilde{Lambda} and \delta\tilde{\Lambda}"
Pipeline
#32983
failed
6 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/gw/conversion.py
+7
-8
7 additions, 8 deletions
bilby/gw/conversion.py
with
7 additions
and
8 deletions
bilby/gw/conversion.py
+
7
−
8
View file @
f4a4730c
from
__future__
import
division
import
numpy
as
np
import
pandas
as
pd
from
..core.utils
import
logger
,
solar_mass
from
..core.prior
import
DeltaFunction
...
...
@@ -511,8 +510,8 @@ def lambda_1_lambda_2_to_delta_lambda(lambda_1, lambda_2, mass_1, mass_2):
lambda_plus
=
lambda_1
+
lambda_2
lambda_minus
=
lambda_1
-
lambda_2
delta_lambda
=
1
/
2
*
(
(
1
-
4
*
eta
)
**
0.5
*
(
1
-
13272
/
1319
*
eta
+
8944
/
1319
*
eta
**
2
)
*
lambda_plus
+
(
1
-
15910
/
1319
*
eta
+
32850
/
1319
*
eta
**
2
+
(
1
-
4
*
eta
)
**
0.5
*
(
1
-
13272
/
1319
*
eta
+
8944
/
1319
*
eta
**
2
)
*
lambda_plus
+
(
1
-
15910
/
1319
*
eta
+
32850
/
1319
*
eta
**
2
+
3380
/
1319
*
eta
**
3
)
*
lambda_minus
)
return
delta_lambda
...
...
@@ -736,7 +735,7 @@ def generate_spin_parameters(sample):
Parameters
----------
sample : dict, p
d
.DataFrame
sample : dict, p
andas
.DataFrame
The input dictionary with some spin parameters
Returns
...
...
@@ -829,12 +828,12 @@ def generate_tidal_parameters(sample):
Parameters
----------
sample: dict, p
d
.DataFrame
sample: dict, p
andas
.DataFrame
Should contain lambda_1, lambda_2
Returns
-------
output_sample: dict, p
d
.DataFrame
output_sample: dict, p
andas
.DataFrame
Updated sample
"""
output_sample
=
sample
.
copy
()
...
...
@@ -857,11 +856,11 @@ def generate_source_frame_parameters(sample):
Parameters
----------
sample: dict, p
d
.DataFrame
sample: dict, p
andas
.DataFrame
Returns
-------
output_sample: dict, p
d
.DataFrame
output_sample: dict, p
andas
.DataFrame
"""
output_sample
=
sample
.
copy
()
...
...
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