#NEWLINE# def _handle_picks( epochs ) : #NEWLINE# #INDENT# 'Aux function to handle picks.' #NEWLINE# if any ( ( ( 'ICA' in picks ) for k in epochs . ch_names ) ) : #NEWLINE# #INDENT# picks = pick_types ( epochs . info , misc = True , ref_meg = False , exclude = [ ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# picks = pick_types ( epochs . info , meg = True , eeg = True , eog = True , ecg = True , seeg = True , ecog = True , ref_meg = False , exclude = [ ] ) #NEWLINE# #UNINDENT# return picks