def _pick_bads(event, params):
 bads = params['info']['bads']
 params['info']['bads'] = _select_bads(event, params, bads)
 params['update_fun']()
 params['plot_fun']()

def _pick_bads ( event , params ) : bads = params [ 'info' ] [ 'bads' ] params [ 'info' ] [ 'bads' ] = _select_bads ( event , params , bads ) params [ 'update_fun' ] ( ) params [ 'plot_fun' ] ( )
select components on click .