def _pick_data_or_ica(info):
    ch_names = [c['ch_name'] for c in info['chs']]
    if 'ICA ' in ','.join(ch_names):
        picks = pick_types(info, exclude=[], misc=True)
    else:
        picks = _pick_data_channels(info, exclude=[],
                                    with_ref_meg=False)
    return picks
Convenience function for picking only data or ICA channels.
dataset/ETHPy150Open mne-tools/mne-python/mne/io/pick.py/_pick_data_or_ica