def channel_indices_by_type(info):
 idx = dict(((key, list()) for key in _PICK_TYPES_KEYS if (key not in ('meg', 'fnirs'))))
 idx.update(mag=list(), grad=list(), hbo=list(), hbr=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

def channel_indices_by_type ( info ) : idx = dict ( ( ( key , list ( ) ) for key in _PICK_TYPES_KEYS if ( key not in ( 'meg' , 'fnirs' ) ) ) ) idx . update ( mag = list ( ) , grad = list ( ) , hbo = list ( ) , hbr = 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
get indices of channels by type .