83def oldMapping(path):
   84
   85   stations = {}
   86   stations['M1Y'] =  {0:29, 1:3, 2:30}         
   87   stations['M1X'] =  {0:11, 1:17, 2:28}
   88   stations['M2Y'] =  {0:16, 1:14, 2:18}
   89   stations['M2X'] =  {0:1, 1:2, 2:25}
   90   stations['M3Y'] =  {0:15, 1:9, 2:5}
   91   stations['M3X'] =  {0:22, 1:27, 2:4}
   92   if path.find("commissioning-h6")>0: stations['M4Y'] =  {0:46, 1:40, 2:20}  
   93   else:                                                                   stations['M4Y'] =  {0:46, 1:23, 2:20}
   94   stations['M4X'] =  {0:8, 1:50, 2:49}
   95   stations['M5Y'] =  {0:19, 1:13, 2:36}
   96   stations['M5X'] =  {0:21, 1:10, 2:6}
   97 
   98
   99   boardMaps = {}
  100   boardMaps['Scifi'] = {}
  101   for station in stations:
  102      for mat in stations[station]:
  103         board = 'board_'+str(stations[station][mat])
  104         boardMaps['Scifi'][board]=[station,mat]
  105 
  106   boardMaps['MuFilter'] = {}
  107
  108   boardMaps['MuFilter']['board_52'] = {'B':'Veto_1Left','C':'Veto_1Right','A':'Veto_2Left','D':'Veto_2Right'}
  109   boardMaps['MuFilter']['board_43'] = {'D':'US_1Left','A':'US_1Right','C':'US_2Left','B':'US_2Right'}
  110   boardMaps['MuFilter']['board_60'] = {'D':'US_3Left','A':'US_3Right','C':'US_4Left','B':'US_4Right'}
  111   boardMaps['MuFilter']['board_41'] = {'D':'US_5Left','A':'US_5Right','C':'DS_1Left','B':'DS_1Right'}
  112   boardMaps['MuFilter']['board_42'] = {'D':'DS_2Left','A':'DS_2Right','B':'DS_1Vert','C':'DS_2Vert'}
  113   boardMaps['MuFilter']['board_55'] = {'D':'DS_3Left','A':'DS_3Right','B':'DS_3Vert','C':'DS_4Vert'}
  114 
  115   if path.find("commissioning-h6")>0 or  path.find("TB_data_commissioning")>0 :
  116
  117      boardMaps['MuFilter']['board_43'] = {'A':'US_1Left','B':'US_2Left','C':'US_2Right','D':'US_1Right'}
  118      boardMaps['MuFilter']['board_60'] = {'A':'US_3Left','B':'US_4Left','C':'US_4Right','D':'US_3Right'}
  119      boardMaps['MuFilter']['board_41'] = {'A':'US_5Left','B':'DS_1Left','C':'DS_1Right','D':'US_5Right'}
  120      if path.find("commissioning-h6")>0: boardMaps['MuFilter']['board_59'] = {'A':'DS_2Right','B':'DS_2Vert','C':'DS_1Vert','D':'DS_2Left'}
  121      else:                                                boardMaps['MuFilter']['board_59'] = {'A':'DS_2Left','B':'DS_1Vert','C':'DS_2Vert','D':'DS_2Right'}
  122      boardMaps['MuFilter']['board_42'] = {'A':'DS_3Left','B':'DS_4Vert','C':'DS_3Vert','D':'DS_3Right'}
  123      boardMaps['MuFilter']['board_52'] = {'A':'Veto_2Left','B':'Veto_1Left','C':'Veto_1Right','D':'Veto_2Right'}
  124   if path.find("data_commissioning_dune")>0:    
  125      boardMaps['MuFilter']['board_43'] = {'A':'US_1Left','B':'US_2Left','C':'US_2Right','D':'US_1Right'}
  126      boardMaps['MuFilter']['board_60'] = {'A':'US_3Left','B':'US_4Left','C':'US_4Right','D':'US_3Right'}
  127      boardMaps['MuFilter']['board_41'] = {'A':'US_5Left','B':'DS_1Left','C':'DS_1Right','D':'US_5Right'}
  128      boardMaps['MuFilter']['board_59'] = {'A':'DS_2Left','B':'DS_1Vert','C':'DS_2Vert','D':'DS_2Right'}
  129      boardMaps['MuFilter']['board_42'] = {'A':'DS_3Left','B':'DS_3Vert','C':'notconnected','D':'notconnected'}
  130      boardMaps['MuFilter']['board_52'] = {'A':'DS_3Right','B':'notconnected','C':'notconnected','D':'notconnected'}
  131   return boardMaps
  132