@verbose
def create_eog_epochs(raw, ch_name=None, event_id=998, picks=None, tmin=(-0.5), tmax=0.5, l_freq=1, h_freq=10, reject=None, flat=None, baseline=None, preload=True, verbose=None):
 events = find_eog_events(raw, ch_name=ch_name, event_id=event_id, l_freq=l_freq, h_freq=h_freq)
 eog_epochs = Epochs(raw, events=events, event_id=event_id, tmin=tmin, tmax=tmax, proj=False, reject=reject, flat=flat, picks=picks, baseline=baseline, preload=preload)
 return eog_epochs

@ verbose def create_eog_epochs ( raw , ch_name = None , event_id = 998 , picks = None , tmin = ( - 0.5 ) , tmax = 0.5 , l_freq = 1 , h_freq = 10 , reject = None , flat = None , baseline = None , preload = True , verbose = None ) : events = find_eog_events ( raw , ch_name = ch_name , event_id = event_id , l_freq = l_freq , h_freq = h_freq ) eog_epochs = Epochs ( raw , events = events , event_id = event_id , tmin = tmin , tmax = tmax , proj = False , reject = reject , flat = flat , picks = picks , baseline = baseline , preload = preload ) return eog_epochs
conveniently generate epochs around eog artifact events .