Skip to content

Commit

Permalink
address comments by alex
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmainak committed Dec 23, 2015
1 parent 679cff1 commit 7b55a02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions mne/io/eeglab/eeglab.py
Expand Up @@ -130,8 +130,8 @@ def read_raw_eeglab(input_fname, montage=None, preload=False, eog=(),
separate binary file.
eog : list | tuple | 'auto'
Names or indices of channels that should be designated
EOG channels. If 'auto', the channel names beginning with
``EOG`` are used. Defaults to empty tuple.
EOG channels. If 'auto', the channel names containing
``EOG`` or ``EYE`` are used. Defaults to empty tuple.
verbose : bool, str, int, or None
If not None, override default verbose level (see mne.verbose).
Expand Down Expand Up @@ -180,8 +180,8 @@ def read_epochs_eeglab(input_fname, events=None, event_id=None, montage=None,
:func:`mne.channels.read_montage` for more information.
eog : list | tuple | 'auto'
Names or indices of channels that should be designated
EOG channels. If 'auto', the channel names beginning with
``EOG`` are used. Defaults to empty tuple.
EOG channels. If 'auto', the channel names containing
``EOG`` or ``EYE`` are used. Defaults to empty tuple.
verbose : bool, str, int, or None
If not None, override default verbose level (see mne.verbose).
Expand Down Expand Up @@ -224,8 +224,8 @@ class RawEEGLAB(_BaseRaw):
on the hard drive (slower, requires less memory).
eog : list | tuple | 'auto'
Names or indices of channels that should be designated
EOG channels. If 'auto', the channel names beginning with
``EOG`` are used. Defaults to empty tuple.
EOG channels. If 'auto', the channel names containing
``EOG`` or ``EYE`` are used. Defaults to empty tuple.
verbose : bool, str, int, or None
If not None, override default verbose level (see mne.verbose).
Expand Down Expand Up @@ -348,8 +348,8 @@ class EpochsEEGLAB(_BaseEpochs):
:func:`mne.channels.read_montage` for more information.
eog : list | tuple | 'auto'
Names or indices of channels that should be designated
EOG channels. If 'auto', the channel names beginning with
``EOG`` are used. Defaults to empty tuple.
EOG channels. If 'auto', the channel names containing
``EOG`` or ``EYE`` are used. Defaults to empty tuple.
verbose : bool, str, int, or None
If not None, override default verbose level (see mne.verbose).
Expand Down
4 changes: 2 additions & 2 deletions mne/io/utils.py
Expand Up @@ -14,11 +14,11 @@
def _find_channels(ch_names, ch_type='EOG'):
"""Helper to find EOG channel.
"""
substrings = (ch_type)
substrings = (ch_type,)
if ch_type == 'EOG':
substrings = ('EOG', 'EYE')
eog_idx = [idx for idx, ch in enumerate(ch_names) if
any(substring in ch for substring in substrings)]
any(substring in ch.upper() for substring in substrings)]
return eog_idx


Expand Down

0 comments on commit 7b55a02

Please sign in to comment.