diff --git a/AUTHORS.md b/AUTHORS.md index 82c103250cb79a9f02b7e62c803480da270e2543..98fae5bce25a9dd071aa4fae634c4b3bb7ce6b97 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -62,7 +62,7 @@ Paul Easter Paul Lasky Philip Relton Rhys Green -Richard Udall +Rhiannon Udall Rico Lo Roberto Cotesta Rory Smith diff --git a/bilby/gw/conversion.py b/bilby/gw/conversion.py index 6faf0d4552000f124aba3f1ba0e9048f7dfe1e4e..2af5767b3a164f09a85b3a4eba7b9b52ea6e3b43 100644 --- a/bilby/gw/conversion.py +++ b/bilby/gw/conversion.py @@ -1006,6 +1006,8 @@ def generate_component_masses(sample, require_add=False, source=False): Add the component masses to the dataframe/dictionary We add: mass_1, mass_2 + Or if source=True + mass_1_source, mass_2_source We also add any other masses which may be necessary for intermediate steps, i.e. typically the total mass is necessary, along with the mass ratio, so these will usually be added to the dictionary @@ -1167,7 +1169,9 @@ def generate_mass_parameters(sample, source=False): not recompute keys already present in the dictionary We add, potentially: - chirp mass, total mass, symmetric mass ratio, mass ratio, mass_1, mass_2 + chirp_mass, total_mass, symmetric_mass_ratio, mass_ratio, mass_1, mass_2 + Or if source=True: + chirp_mass_source, total_mass_source, symmetric_mass_ratio, mass_ratio, mass_1_source, mass_2_source Parameters ========== @@ -1175,6 +1179,10 @@ def generate_mass_parameters(sample, source=False): The input dictionary with two "spanning" mass parameters e.g. (mass_1, mass_2), or (chirp_mass, mass_ratio), but not e.g. only (mass_ratio, symmetric_mass_ratio) + source : bool, default False + If True, then perform the conversions for source mass parameters + i.e. mass_1_source instead of mass_1 + Returns ======= dict: The updated dictionary diff --git a/test/check_author_list.py b/test/check_author_list.py index 752f6d2debe715e94ddf6958b544c82a7d730f52..eac8a4a6c8c7470b4586e4a68ec9e3ea8059150e 100644 --- a/test/check_author_list.py +++ b/test/check_author_list.py @@ -3,7 +3,7 @@ import re import subprocess -special_cases = ["plasky", "thomas", "mj-will"] +special_cases = ["plasky", "thomas", "mj-will", "richard"] AUTHORS_list = [] with open("AUTHORS.md", "r") as f: AUTHORS_list = " ".join([line for line in f]).lower()