is you use >>> the code will be executed by "make test-doc" and is here likely to fail as "raw-eve.fif" is not there.

also events[:,0] /= 4 is maybe a bad idea.

I'd much prefer:

events[:,0] /= np.round(events[:,0] / float(4)).astype(np.int)

to round correctly.