(single_lo=True)
return lo_freq
Prompt the user for the LNB's LO frequencies
Prompt the user for the LNB's LO frequencies
Prompt the user for the LNB s LO frequencies
def _ask_lnb_lo(single_lo=True):
    """Prompt the user for the LNB's LO frequencies"""
    if (single_lo):
        while (True):
            lo_freq = util.typed_input("LNB LO frequency in MHz",
                                       in_type=float)

            if (lo_freq < 3000):
                print("Please, provide the frequencies in MHz.")
                continue

            break
        return lo_freq

    lo_freq = []
    while (True):
        while (len(lo_freq) != 2):
            try:
                resp = input("Inform the two LO frequencies in MHz, separated "
                             "by comma: ")
                lo_freq = [float(x) for x in resp.split(",")]
            except ValueError:
                continue

        if (lo_freq[1] < lo_freq[0]):
            lo_freq = []
            print("Please, provide the low LO frequency first, followed by "
                  "the high LO frequency.")
            continue

        if (lo_freq[0] < 3000 or lo_freq[1] < 3000):
            lo_freq = []
            print("Please, provide the frequencies in MHz.")
            continue

        break

    return lo_freq
def _ask_lnb_lo ( single_lo = True ) : if ( single_lo ) : while ( True ) : lo_freq = util . typed_input ( "LNB LO frequency in MHz" , in_type = float ) if ( lo_freq < 3000 ) : print ( "Please, provide the frequencies in MHz." ) continue break return lo_freq lo_freq = [ ] while ( True ) : while ( len ( lo_freq ) != 2 ) : try : resp = input ( "Inform the two LO frequencies in MHz, separated " "by comma: " ) lo_freq = [ float ( x ) for x in resp . split ( "," ) ] except ValueError : continue if ( lo_freq [ 1 ] < lo_freq [ 0 ] ) : lo_freq = [ ] print ( "Please, provide the low LO frequency first, followed by " "the high LO frequency." ) continue if ( lo_freq [ 0 ] < 3000 or lo_freq [ 1 ] < 3000 ) : lo_freq = [ ] print ( "Please, provide the frequencies in MHz." ) continue break return lo_freq