def channel_indices_by_type(info):
    idx = dict((key, list()) for key in _PICK_TYPES_KEYS if key != 'meg')
    idx.update(mag=list(), grad=list())
    for k, ch in enumerate(info['chs']):
        for key in idx.keys():
            if channel_type(info, k) == key:
                idx[key].append(k)

    return idx
Test source estimate from mixed source space
dataset/ETHPy150Open mne-tools/mne-python/mne/io/pick.py/channel_indices_by_type--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/tests/test_source_estimate.py/test_mixed_stc