Functions | |
def | from_lal_value (val) |
Read and return a value from LALDict. More... | |
def | to_lal_dict (d) |
Convert Python dictionary to LALDict object readble by LAL. More... | |
def | from_lal_dict (ldict) |
Convert LALDict object to a Python dictionary. More... | |
def | check_dict_parameters (waveform_dict, generic_param_dict=None) |
Checks the parameters used in the waveform generation routine. More... | |
def | add_params_units (waveform_dict, units_sys='S.I.', generic_param_dict=None) |
Add units or convert to desired units system to the waveform parameters dictionary. More... | |
def | CheckDeterminationOfMasses (waveform_dict) |
Check mass parameters are consistent and enough to fully characterize the binary masses. More... | |
def | CheckDeterminationOfSpins (waveform_dict) |
Check spin parameters are consistent and enough to fully characterize the binary spins. More... | |
def lalsimulation.gwsignal.core.utils.from_lal_value | ( | val | ) |
def lalsimulation.gwsignal.core.utils.to_lal_dict | ( | d | ) |
def lalsimulation.gwsignal.core.utils.from_lal_dict | ( | ldict | ) |
def lalsimulation.gwsignal.core.utils.check_dict_parameters | ( | waveform_dict, | |
generic_param_dict = None |
|||
) |
Checks the parameters used in the waveform generation routine.
waveform_dict (dict): The dictionary of parameters used to generate the template.
generic_param_dict (dict,optional): Dictionary of extra parameter names to be accepted in order to generate non-standard waveforms. It should not include standard waveform parameters as they will be ignored. The form should be parameter_name:parameter_units and the values should be just added in the waveform_dict.
AssertionError: If a parameter has the wrong units. TypeError: If a parameter is not available to use or a dimensional parameter is passed as dimensionless.
def lalsimulation.gwsignal.core.utils.add_params_units | ( | waveform_dict, | |
units_sys = 'S.I.' , |
|||
generic_param_dict = None |
|||
) |
Add units or convert to desired units system to the waveform parameters dictionary.
waveform_dict (dict): The dictionary of parameters used to generate the template. units_sys (:obj:str
, optional): System of units chosen for the given parameters. Defaults to None. If a unit system is given, try to convert and provide units to the parameters in waveform_dict
. If default checks the parameters in waveform_dict
have the appropriate units. generic_param_dict (dict,optional): Dictionary of extra parameter names to be accepted in order to generate non-standard waveforms. It should not include standard waveform parameters as they will be ignored. The form should be parameter_name:parameter_units and the values should be just added in the waveform_dict.
A dict the corresponding conversions to the specified units_sys
system.
AssertionError: If a parameter has wrong units
def lalsimulation.gwsignal.core.utils.CheckDeterminationOfMasses | ( | waveform_dict | ) |
def lalsimulation.gwsignal.core.utils.CheckDeterminationOfSpins | ( | waveform_dict | ) |