def _set_custom_selection(params):
 chs = params['fig_selection'].lasso.selection
 if (len(chs) == 0):
  return
 labels = [l._text for l in params['fig_selection'].radio.labels]
 inds = np.in1d(params['raw'].ch_names, chs)
 params['selections']['Custom'] = np.where(inds)[0]
 _set_radio_button(labels.index('Custom'), params=params)

def _set_custom_selection ( params ) : chs = params [ 'fig_selection' ] . lasso . selection if ( len ( chs ) == 0 ) : return labels = [ l . _text for l in params [ 'fig_selection' ] . radio . labels ] inds = np . in1d ( params [ 'raw' ] . ch_names , chs ) params [ 'selections' ] [ 'Custom' ] = np . where ( inds ) [ 0 ] _set_radio_button ( labels . index ( 'Custom' ) , params = params )
set custom selection by lasso selector .