Skip to content
Snippets Groups Projects
Commit 02512a63 authored by Colm Talbot's avatar Colm Talbot
Browse files

Merge branch 'bugfix-symmetric-mass-ratio' into 'master'

BUGFIX: make sure symmetric mass ratio < 1 / 4

See merge request !1184
parents f8f674ba e1876acc
No related branches found
No related tags found
1 merge request!1184BUGFIX: make sure symmetric mass ratio < 1 / 4
Pipeline #481768 passed
...@@ -597,7 +597,7 @@ def component_masses_to_symmetric_mass_ratio(mass_1, mass_2): ...@@ -597,7 +597,7 @@ def component_masses_to_symmetric_mass_ratio(mass_1, mass_2):
Symmetric mass ratio of the binary 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): def component_masses_to_mass_ratio(mass_1, mass_2):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment