From f2cecf90d105753720c54293531e97adb279fc6e Mon Sep 17 00:00:00 2001 From: Christian O'Reilly Date: Mon, 18 May 2020 17:45:09 -0400 Subject: [PATCH 1/2] Fix the issue 6014 --- mne/preprocessing/ica.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mne/preprocessing/ica.py b/mne/preprocessing/ica.py index 638e9447067..f260a002181 100644 --- a/mne/preprocessing/ica.py +++ b/mne/preprocessing/ica.py @@ -1342,9 +1342,6 @@ def find_bads_eog(self, inst, ch_name=None, threshold=3.0, start=None, find_bads_ecg, find_bads_ref """ eog_inds = _get_eog_channel_index(ch_name, inst) - if len(eog_inds) > 2: - eog_inds = eog_inds[:1] - logger.info('Using EOG channel %s' % inst.ch_names[eog_inds[0]]) eog_chs = [inst.ch_names[k] for k in eog_inds] self.labels_['eog'], scores = self._find_bads_ch( From 4e35228f7a31536f20cf7dc51fb9c49b846f932a Mon Sep 17 00:00:00 2001 From: Christian O'Reilly Date: Mon, 18 May 2020 18:11:17 -0400 Subject: [PATCH 2/2] Update the latest.inc for issue 6014 --- doc/changes/latest.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/changes/latest.inc b/doc/changes/latest.inc index 5bc61881f7b..2d405520454 100644 --- a/doc/changes/latest.inc +++ b/doc/changes/latest.inc @@ -72,6 +72,8 @@ Changelog Bug ~~~ +- Fix bug with :func:`mne.preprocessing.ICA.find_bads_eog` when more than one EOG components are present by `Christian O'Reilly`_ + - Fix bug with :func:`mne.setup_volume_source_space` when ``volume_label`` was supplied where voxels slightly (in a worst case, about 37% times ``pos`` in distance) outside the voxel-grid-based bounds of regions were errantly included, by `Eric Larson`_ - Fix bug with :func:`mne.preprocessing.annotate_movement` where bad data segments, specified in ``raw.annotations``, would be handled incorrectly by `Luke Bloy`_