@verbose
def ica_find_ecg_events(raw, ecg_source, event_id=999, tstart=0.0, l_freq=5, h_freq=35, qrs_threshold='auto', verbose=None):
 logger.info('Using ICA source to identify heart beats')
 ecg_events = qrs_detector(raw.info['sfreq'], ecg_source.ravel(), tstart=tstart, thresh_value=qrs_threshold, l_freq=l_freq, h_freq=h_freq)
 n_events = len(ecg_events)
 ecg_events = np.c_[((ecg_events + raw.first_samp), np.zeros(n_events), (event_id * np.ones(n_events)))]
 return ecg_events

@ verbose def ica_find_ecg_events ( raw , ecg_source , event_id = 999 , tstart = 0.0 , l_freq = 5 , h_freq = 35 , qrs_threshold = 'auto' , verbose = None ) : logger . info ( 'Using ICA source to identify heart beats' ) ecg_events = qrs_detector ( raw . info [ 'sfreq' ] , ecg_source . ravel ( ) , tstart = tstart , thresh_value = qrs_threshold , l_freq = l_freq , h_freq = h_freq ) n_events = len ( ecg_events ) ecg_events = np . c_ [ ( ( ecg_events + raw . first_samp ) , np . zeros ( n_events ) , ( event_id * np . ones ( n_events ) ) ) ] return ecg_events
find ecg peaks from one selected ica source .