()
return antenna
Configure antenna
Configure antenna
Configure antenna
def _ask_antenna():
    """Configure antenna"""
    os.system('clear')
    util.print_header("Antenna")

    question = "What kind of antenna are you using?"
    antenna = util.ask_multiple_choice(defs.antennas,
                                       question,
                                       "Antenna",
                                       _get_antenna_name,
                                       none_option=True,
                                       none_str="Other")

    if (antenna is None):
        size = util.typed_input("Enter size in cm",
                                "Please enter an integer number in cm",
                                in_type=int)
        antenna = {'label': "custom", 'type': 'dish', 'size': size}

    return antenna
def _ask_antenna ( ) : os . system ( 'clear' ) util . print_header ( "Antenna" ) question = "What kind of antenna are you using?" antenna = util . ask_multiple_choice ( defs . antennas , question , "Antenna" , _get_antenna_name , none_option = True , none_str = "Other" ) if ( antenna is None ) : size = util . typed_input ( "Enter size in cm" , "Please enter an integer number in cm" , in_type = int ) antenna = { 'label' : "custom" , 'type' : 'dish' , 'size' : size } return antenna