Commit e1876acc authored by Colm Talbot's avatar Colm Talbot
Browse files

BUGFIX: make sure symmetric mass ratio < 1 / 4

parent e73045f8
......@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment