def __init__(self, wiring_map):
    self.mp = {}
    self.mp_inv = {}
    for k in wiring_map.keys():
        wm = wiring_map[k]
        board_id = get_physical_id(wm.board_serial, wm.crate_serial, wm.board_slot)
        self.mp[wm.board_serial] = board_id
        self.mp_inv[board_id] = wm.board_serial
def __init__(self, wiring_map):
    self.mp = {}
    self.mp_inv = {}
    for k in wiring_map.keys():
        wm = wiring_map[k]
        board_id = get_physical_id(wm.board_serial, wm.crate_serial, wm.board_slot)
        self.mp[wm.board_serial] = board_id
        self.mp_inv[board_id] = wm.board_serial