def second_hpf_matrix(ratio_random, second_pass):
    """Simulate request or recommended application of 2nd High Pass Filter"""

    # global
    global center_cell_level_2

    # if ratio > 6
    if ratio_random > 6:
        print "Resolution Ratio > 6 | 2nd pass recommended"

    # 2nd pass requested?
    if ratio_random < 6 and second_pass:
        print "Second Pass Requested:", second_pass
    center_cell_level_2 = random.choice(CENTER_CELL.keys())

    # inform
    print "Center cell level 2:", center_cell_level_2
def second_hpf_matrix(ratio_random, second_pass):
    """Simulate request or recommended application of 2nd High Pass Filter"""

    # global
    global center_cell_level_2

    # if ratio > 6
    if ratio_random > 6:
        print "Resolution Ratio > 6 | 2nd pass recommended"

    # 2nd pass requested?
    if ratio_random < 6 and second_pass:
        print "Second Pass Requested:", second_pass
    center_cell_level_2 = random.choice(CENTER_CELL.keys())

    # inform
    print "Center cell level 2:", center_cell_level_2
print "Ratio (Random):", ratio_random

# Kernel size ------------------------------------------------------------
kernel_size = kernel_size()
print "Kernel Size: ", kernel_size

# idx
kernel_index = KERNEL_SIZES.index(kernel_size)
print "(Index to retrieve center cell value: ", kernel_index, ")"

print
print "--- --- - Simulate User Input - --- ---"
print

# Center Cell ------------------------------------------------------------
center_cell_level = random.choice(CENTER_CELL.keys())
print "Center cell level:", center_cell_level, "| Values:", CENTER_CELL[
    center_cell_level]
center_cell = (CENTER_CELL[center_cell_level])[kernel_index]
print "Center cell value: ", center_cell
print

# 4. Second Pass ------------------------------------------------------------

# request second pass?
second_pass = random.choice([bool(0), bool(1)])
#print "Second Pass: "******"Center cell value 2: ", center_cell_2
# Kernel size ------------------------------------------------------------
kernel_size = kernel_size()
print "Kernel Size: ", kernel_size

# idx
kernel_index = KERNEL_SIZES.index(kernel_size)
print "(Index to retrieve center cell value: ", kernel_index, ")"

print
print "--- --- - Simulate User Input - --- ---"
print


# Center Cell ------------------------------------------------------------
center_cell_level = random.choice(CENTER_CELL.keys())
print "Center cell level:", center_cell_level, "| Values:", CENTER_CELL[center_cell_level]
center_cell = (CENTER_CELL[center_cell_level])[kernel_index]
print "Center cell value: ", center_cell
print

# 4. Second Pass ------------------------------------------------------------

# request second pass?
second_pass = random.choice([bool(0), bool(1)])
# print "Second Pass: "******"Center cell value 2: ", center_cell_2