eventcodes_dictionary = {
    21: 'Feed1',
    22: 'Feed2',
    23: 'Feed3',
    24: 'Feed4',
    25: 'DipOn',
    26: 'DipOff',
    27: 'LLeverOn',
    28: 'RLeverOn',
    29: 'LLeverOff',
    30: 'RLeverOff',
    31: 'LightOff1',
    32: 'LightOff2',
    33: 'LightOff3',
    34: 'LightOff4',
    41: 'LightOn1',
    42: 'LightOn2',
    43: 'LightOn3',
    44: 'LightOn4',
    51: 'ToneOff1',
    52: 'ToneOff2',
    53: 'ToneOff3',
    54: 'ToneOff4',
    61: 'ToneOn1',
    62: 'ToneOn2',
    63: 'ToneOn3',
    64: 'ToneOn4',
    71: 'WNoiseOff1',
    72: 'WNoiseOff2',
    73: 'WNoiseOff3',
    74: 'WNoiseOff4',
    81: 'WNoiseOn1',
    82: 'WNoiseOn2',
    83: 'WNoiseOn3',
    84: 'WNoiseOn4',
    101: 'FeederLightOn',
    102: 'FeederLightOff',
    111: 'StartTrial',
    112: 'EndTrial',
    113: 'StartSession',
    114: 'EndSession',
    115: 'HouseLightOff',
    116: 'HouseLightOn',
    117: 'OnFan',
    118: 'OffFan',
    121: 'StartIti',
    122: 'EndIti',
    201: 'LightOffStan',
    202: 'LightOnStan',
    203: 'LightOffComp',
    204: 'LightOnComp',
    205: 'LightOffCtrl',
    206: 'LightOnCtrl',
    207: 'FeedStan',
    208: 'FeedComp',
    209: 'StartStanFlash',
    211: 'StopStanFlash',
    212: 'StartCompFlash',
    213: 'StopCompFlash',
    214: 'STNonGapNonProbe',
    215: 'STNonGapProbe',
    216: 'STGapNonProbe',
    217: 'STGapProbe',
    221: 'ProbeTrial',
    222: 'AutoTrial',
    1000: 'OmissionStart',
    1110: 'SuccessfulNoGoTrial',
    1111: 'SuccessfulGoTrial',  # there is also an omission end that has this code key but we don't use it
    1001: 'PokeOff1',
    1002: 'PokeOff2',
    1003: 'PokeOff3',
    1004: 'PokeOff4',
    1011: 'PokeOn1',
    1012: 'PokeOn2',
    1013: 'PokeOn3',
    1014: 'PokeOn4',
    1015: 'LPressOn',
    1016: 'RPressOn',
    1017: 'LPressOff',
    1018: 'RPressOff',
    1125: 'DipLightOn',
    1126: 'DipLightOff',
    1301: 'PokeOffStan',
    1302: 'PokeOnStan',
    1303: 'PokeOffComp',
    1304: 'PokeOnComp',
    1305: 'PokeOffCtrl',
    1306: 'PokeOnCtrl',
    1401: 'ActivePress',
    1402: 'InactivePress',
    1501: 'ExcitorBTrialStart',
    1502: 'ExcitorBTrialEnd',
    1503: 'ExcitorATrialStart',
    1504: 'ExcitorATrialEnd',
    1505: 'InhibitorTrialStart',  # actually AInhibitorTrialStart, but needed to use this def. so current code works
    1506: 'InhibitorTrialEnd',  # actually AInhibitorTrialEnd, but needed to use this def. so current code works
    1507: 'InhibitorTrialStart',
    1508: 'InhibitorTrialEnd',
    1509: 'InhibitorTrialStart',  # actually BInhibitorTrialStart, but needed to use this def. so current code works
    1510: 'InhibitorTrialEnd',  # actually BInhibitorTrialEnd, but needed to use this def. so current code works
    1520: 'LargeReward',
    1521: 'SmallReward',
    1531: 'RewardTrialStart',
    1532: 'RewardTrialEnd',
    1533: 'NoRewardTrialStart',
    1534: 'NoRewardTrialEnd',
    1540: 'GoTrialBegSmallReward',
    1541: 'GoTrialBegLargeReward',
    1542: 'GoTrialSuccessSmallReward',
    1543: 'GoTrialSuccessLargeReward',
    1544: 'NoGoTrialBegSmallReward',
    1545: 'NoGoTrialBegLargeReward',
    1546: 'NoGoTrialSuccessSmallReward',
    1547: 'NoGoTrialSuccessLargeReward',
    7071: 'LPokeOn',
    7070: 'LPokeOff',
    7271: 'LSolOn',
    7270: 'LSolOff',
    8071: 'MPokeOn',
    8070: 'MPokeOff',
    8271: 'MSolOn',
    8270: 'MSolOff',
    9071: 'RPokeOn',
    9070: 'RPokeOff',
    9271: 'RSolOn',
    9270: 'RSolOff',
    771: 'LPokeOn',
    770: 'LPokeOff',
    2771: 'LSolOn',
    2770: 'LSolOff',
    10771: 'MPokeOn',
    10770: 'MPokeOff',
    12771: 'MSolOn',
    12770: 'MSolOff',
    20771: 'RPokeOn',
    20770: 'RPokeOff',
    22771: 'RSolOn',
    22770: 'RSolOff'
}
