bilby.gw.conversion.generate_component_spins
- bilby.gw.conversion.generate_component_spins(sample)[source]
Add the component spins to the data frame/dictionary.
This function uses a lalsimulation function to transform the spins.
- Parameters:
- sample: A dictionary with the necessary spin conversion parameters:
- ‘theta_jn’, ‘phi_jl’, ‘tilt_1’, ‘tilt_2’, ‘phi_12’, ‘a_1’, ‘a_2’, ‘mass_1’,
- ‘mass_2’, ‘reference_frequency’, ‘phase’
- Returns:
- dict: The updated dictionary