def test_find_eog(): """Test find EOG peaks.""" raw = read_raw_fif(raw_fname) raw.annotations = Annotations([14, 21], [1, 1], 'BAD_blink') events = find_eog_events(raw) assert len(events) == 4 assert not all(events[:, 0] < 29000) events = find_eog_events(raw, reject_by_annotation=True) assert all(events[:, 0] < 29000)
def test_find_eog(): """Test find EOG peaks.""" raw = read_raw_fif(raw_fname) raw.annotations = Annotations([14, 21], [1, 1], 'BAD_blink') events = find_eog_events(raw) assert_true(len(events) == 4) assert_true(not all(events[:, 0] < 29000)) events = find_eog_events(raw, reject_by_annotation=True) assert_true(all(events[:, 0] < 29000))
def test_find_eog(): """Test find EOG peaks.""" raw = read_raw_fif(raw_fname) raw.set_annotations(Annotations([14, 21], [1, 1], 'BAD_blink')) events = find_eog_events(raw) assert len(events) == 4 assert not all(events[:, 0] < 29000) events = find_eog_events(raw, reject_by_annotation=True) assert all(events[:, 0] < 29000) # threshold option events_thr = find_eog_events(raw, thresh=100e-6) assert len(events_thr) == 5
def test_find_eog(): """Test find EOG peaks.""" ch_name = 'EOG 061' raw = read_raw_fif(raw_fname) raw.set_annotations(Annotations([14, 21], [1, 1], 'BAD_blink')) events = find_eog_events(raw, ch_name=ch_name) assert len(events) == 4 assert not all(events[:, 0] < 29000) events = find_eog_events(raw, reject_by_annotation=True, ch_name=ch_name) assert all(events[:, 0] < 29000) # threshold option events_thr = find_eog_events(raw, thresh=100e-6, ch_name=ch_name) assert len(events_thr) == 5 # test different ways to specify the EOG channel(s) events = find_eog_events(raw, ch_name=None) assert len(events) == 4 events = find_eog_events(raw, ch_name=['EEG 060', 'EOG 061']) assert len(events) == 4
def test_find_eog(): """Test find EOG peaks.""" raw = read_raw_fif(raw_fname, add_eeg_ref=False) events = find_eog_events(raw) n_events = len(events) assert_true(n_events == 4)
def test_find_eog(): """Test find EOG peaks""" raw = Raw(raw_fname) events = find_eog_events(raw) n_events = len(events) assert_true(n_events == 4)