How to string codified epochs

Ahaa, It is simply

event_ids ={'r0': 0, 'r1': 1,'r2': 2}
epochs.event_id=event_ids