Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michael Williams
bilby
Commits
e1876acc
Commit
e1876acc
authored
Nov 22, 2022
by
Colm Talbot
Browse files
BUGFIX: make sure symmetric mass ratio < 1 / 4
parent
e73045f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
bilby/gw/conversion.py
View file @
e1876acc
...
...
@@ -597,7 +597,7 @@ def component_masses_to_symmetric_mass_ratio(mass_1, mass_2):
Symmetric mass ratio of the binary
"""
return
(
mass_1
*
mass_2
)
/
(
mass_1
+
mass_2
)
**
2
return
np
.
minimum
(
(
mass_1
*
mass_2
)
/
(
mass_1
+
mass_2
)
**
2
,
1
/
4
)
def
component_masses_to_mass_ratio
(
mass_1
,
mass_2
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment