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

attempt to fix python 2 list copy

parent 6e34491f
No related branches found
No related tags found
1 merge request!195Improve conversion / change internal parameter logic
Pipeline #31020 passed
......@@ -75,7 +75,7 @@ def convert_to_lal_binary_black_hole_parameters(parameters):
"""
converted_parameters = parameters.copy()
original_keys = list(converted_parameters.keys()).copy()
original_keys = list(converted_parameters.keys())
if 'chirp_mass' in converted_parameters.keys():
if 'total_mass' in converted_parameters.keys():
......@@ -183,7 +183,7 @@ def convert_to_lal_binary_neutron_star_parameters(parameters):
keys which are added to parameters during function call
"""
converted_parameters = parameters.copy()
original_keys = list(converted_parameters.keys()).copy()
original_keys = list(converted_parameters.keys())
converted_parameters, added_keys =\
convert_to_lal_binary_black_hole_parameters(converted_parameters)
......
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