def _pick_bads(event, params):
    bads = params['info']['bads']
    params['info']['bads'] = _select_bads(event, params, bads)
    params['update_fun']()
    params['plot_fun']()
Function for selecting components on click.
dataset/ETHPy150Open mne-tools/mne-python/mne/viz/ica.py/_pick_bads