Functions | |
def | type_1_mods |
def | add_type_1_mod |
def | type_1_demods |
def | add_type_1_demod |
def | extract_kwargs_from_options |
Given a function, a list of excluded arguments and the result of parsing command line options, create a dictionary of key word arguments suitable for passing to the function. | |
Variables | |
dictionary | _type_1_modulators = {} |
dictionary | _type_1_demodulators = {} |
def gnuradio::modulation_utils::add_type_1_demod | ( | name, | ||
demod_class | ||||
) |
def gnuradio::modulation_utils::add_type_1_mod | ( | name, | ||
mod_class | ||||
) |
def gnuradio::modulation_utils::extract_kwargs_from_options | ( | function, | ||
excluded_args, | ||||
options | ||||
) |
Given a function, a list of excluded arguments and the result of parsing command line options, create a dictionary of key word arguments suitable for passing to the function.
The dictionary will be populated with key/value pairs where the keys are those that are common to the function's argument list (minus the excluded_args) and the attributes in options. The values are the corresponding values from options unless that value is None. In that case, the corresponding dictionary entry is not populated.
(This allows different modulations that have the same parameter names, but different default values to coexist. The downside is that --help in the option parser will list the default as None, but in that case the default provided in the __init__ argument list will be used since there is no kwargs entry.)
function,: | the function whose parameter list will be examined | |
excluded_args,: | function arguments that are NOT to be added to the dictionary excluded_args: sequence of strings | |
options,: | result of command argument parsing options: optparse.Values |
def gnuradio::modulation_utils::type_1_demods | ( | ) |
def gnuradio::modulation_utils::type_1_mods | ( | ) |
dictionary gnuradio::modulation_utils::_type_1_demodulators = {} |
dictionary gnuradio::modulation_utils::_type_1_modulators = {} |