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
9ca9bd70
Commit
9ca9bd70
authored
2 years ago
by
Rhiannon Udall
Committed by
Colm Talbot
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Docstring Fixes for Generate Masses
parent
c68c3061
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1160
Docstring Fixes for Generate Masses
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
AUTHORS.md
+1
-1
1 addition, 1 deletion
AUTHORS.md
bilby/gw/conversion.py
+9
-1
9 additions, 1 deletion
bilby/gw/conversion.py
test/check_author_list.py
+1
-1
1 addition, 1 deletion
test/check_author_list.py
with
11 additions
and
3 deletions
AUTHORS.md
+
1
−
1
View file @
9ca9bd70
...
...
@@ -62,7 +62,7 @@ Paul Easter
Paul Lasky
Philip Relton
Rhys Green
R
ichard
Udall
R
hiannon
Udall
Rico Lo
Roberto Cotesta
Rory Smith
...
...
This diff is collapsed.
Click to expand it.
bilby/gw/conversion.py
+
9
−
1
View file @
9ca9bd70
...
...
@@ -1006,6 +1006,8 @@ def generate_component_masses(sample, require_add=False, source=False):
Add the component masses to the dataframe/dictionary
We add:
mass_1, mass_2
Or if source=True
mass_1_source, mass_2_source
We also add any other masses which may be necessary for
intermediate steps, i.e. typically the total mass is necessary, along
with the mass ratio, so these will usually be added to the dictionary
...
...
@@ -1167,7 +1169,9 @@ def generate_mass_parameters(sample, source=False):
not recompute keys already present in the dictionary
We add, potentially:
chirp mass, total mass, symmetric mass ratio, mass ratio, mass_1, mass_2
chirp_mass, total_mass, symmetric_mass_ratio, mass_ratio, mass_1, mass_2
Or if source=True:
chirp_mass_source, total_mass_source, symmetric_mass_ratio, mass_ratio, mass_1_source, mass_2_source
Parameters
==========
...
...
@@ -1175,6 +1179,10 @@ def generate_mass_parameters(sample, source=False):
The input dictionary with two
"
spanning
"
mass parameters
e.g. (mass_1, mass_2), or (chirp_mass, mass_ratio), but not e.g. only
(mass_ratio, symmetric_mass_ratio)
source : bool, default False
If True, then perform the conversions for source mass parameters
i.e. mass_1_source instead of mass_1
Returns
=======
dict: The updated dictionary
...
...
This diff is collapsed.
Click to expand it.
test/check_author_list.py
+
1
−
1
View file @
9ca9bd70
...
...
@@ -3,7 +3,7 @@
import
re
import
subprocess
special_cases
=
[
"
plasky
"
,
"
thomas
"
,
"
mj-will
"
]
special_cases
=
[
"
plasky
"
,
"
thomas
"
,
"
mj-will
"
,
"
richard
"
]
AUTHORS_list
=
[]
with
open
(
"
AUTHORS.md
"
,
"
r
"
)
as
f
:
AUTHORS_list
=
"
"
.
join
([
line
for
line
in
f
]).
lower
()
...
...
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