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

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
pick only data or ica channels .