def _prepare_picks(info, data, picks):
 if (picks is None):
  picks = pick_types(info, meg=True, eeg=True, ref_meg=False, exclude='bads')
 if np.array_equal(picks, np.arange(len(data))):
  picks = slice(None)
 else:
  info = pick_info(info, picks)
 return (info, data, picks)

def _prepare_picks ( info , data , picks ) : if ( picks is None ) : picks = pick_types ( info , meg = True , eeg = True , ref_meg = False , exclude = 'bads' ) if np . array_equal ( picks , np . arange ( len ( data ) ) ) : picks = slice ( None ) else : info = pick_info ( info , picks ) return ( info , data , picks )
prepare the picks .