Pick only data channels.
(info, exclude="bads", with_ref_meg=True, with_aux=False)
| 1180 | |
| 1181 | |
| 1182 | def _pick_data_channels(info, exclude="bads", with_ref_meg=True, with_aux=False): |
| 1183 | """Pick only data channels.""" |
| 1184 | kwargs = _PICK_TYPES_DATA_DICT |
| 1185 | if with_aux: |
| 1186 | kwargs = kwargs.copy() |
| 1187 | kwargs.update(eog=True, ecg=True, emg=True, bio=True) |
| 1188 | return pick_types(info, ref_meg=with_ref_meg, exclude=exclude, **kwargs) |
| 1189 | |
| 1190 | |
| 1191 | def _pick_data_or_ica(info, exclude=()): |