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

BUGFIX: make sure symmetric mass ratio < 1 / 4

parent e73045f8
No related branches found
No related tags found
1 merge request!1184BUGFIX: make sure symmetric mass ratio < 1 / 4
Pipeline #478002 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