"""
verify_pattern.py configuration file
made for quick access for editing destinations, bpms, ect.

WARNING: changing this file will change the behavior of verify_pattern.py
         ONLY DO THIS IF YOU KNOW WHAT YOU ARE DOING
"""

# dictionary of lists, with destinations as keys
# each dest is a list of tupples where each tupbe is an experimental sequence numbers and bits in order
# what is defined here defines what is checked by the verification scrpt
# pattern:        'dest':   [(1 Hz)], (10 Hz), (100 Hz)]
EXP_NUM_BITS = {
    "SC_DIAG0": [(1, 0), (1, 1), (1, 2)],
    "SC_BSYD": [(1, 4), (1, 5), (1, 6)],
    "SC_HXR": [(1, 8), (1, 9), (1, 10)],
    "SC_SXR": [(1, 12), (1, 13), (1, 14)],
}

# max rate for exp_num_bits by position in list
# in real rate for ease of programing
EXP_NUM_BITS_RATES = [1, 10, 102]
EXP_NUM_BITS_AC_RATES = [1, 10, 120]

RM_START_INDEX = 6

RM_DESTS = ["SC_DIAG0", "SC_BSYD", "SC_HXR", "SC_SXR"]


BPM_CONFIG = {
    # dest_num: {"bpm_name": want_tmit}
    1: [("BPMS:HTR:960", True)],
    2: [("BPMS:SLTD:895", True)],
    3: [(("BPMS:SPD:255", False), ("BPMS:SPD:135", True), ("BPMS:SPH:322", True))],
    4: [(("BPMS:SPD:525", False), ("BPMS:SPD:420", True), ("BPMS:SPS:572", True))],
    5: [(("BPMS:SPS:572", False), ("BPMS:SPD:570", True), ("BPMS:DASEL:300", True))],
}

BPM_CONFIG_DEV = {}

BSA_BUFF_LOW = 21
BSA_BUFF_HIGH = 49
