bilby.gw.conversion.total_mass_and_mass_ratio_to_component_masses

bilby.gw.conversion.total_mass_and_mass_ratio_to_component_masses(mass_ratio, total_mass)[source]

Convert total mass and mass ratio of a binary to its component masses.

Parameters:
mass_ratio: float

Mass ratio (mass_2/mass_1) of the binary

total_mass: float

Total mass of the binary

Returns:
mass_1: float

Mass of the heavier object

mass_2: float

Mass of the lighter object