def refine_quadratic(x, y, Rval_thresh=None):
    beta, R2 = fit_quad_to_peak(x, y)
    if Rval_thresh is not None and R2 < Rval_thresh:
        raise PeakRejection()

    return beta[1], beta[2]
Handles the user requesting an element to be undocked.
dataset/ETHPy150Open scikit-beam/scikit-beam/skbeam/core/feature.py/refine_quadratic--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/dock/dock_window.py/DockWindow.on_undock