Skip to content
Snippets Groups Projects
Commit 3e35b4f7 authored by Gregory Ashton's avatar Gregory Ashton Committed by Colm Talbot
Browse files

Avoid recalculation of mass_ratio

parent 5eaa262b
No related branches found
No related tags found
1 merge request!1061Avoid recalculation of mass_ratio
......@@ -174,7 +174,7 @@ def convert_to_lal_binary_black_hole_parameters(parameters):
chirp_mass_and_total_mass_to_symmetric_mass_ratio(
converted_parameters['chirp_mass'],
converted_parameters['total_mass'])
if 'symmetric_mass_ratio' in converted_parameters.keys():
if 'symmetric_mass_ratio' in converted_parameters.keys() and "mass_ratio" not in converted_parameters:
converted_parameters['mass_ratio'] =\
symmetric_mass_ratio_to_mass_ratio(
converted_parameters['symmetric_mass_ratio'])
......
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