diff --git a/pyzebra/app/panel_ccl_integrate.py b/pyzebra/app/panel_ccl_integrate.py index f6007b9..9473c28 100644 --- a/pyzebra/app/panel_ccl_integrate.py +++ b/pyzebra/app/panel_ccl_integrate.py @@ -211,14 +211,14 @@ def create(): peak_pos_textinput_lock = False - fit_result = scan.get("fit_result") - if fit_result is not None: - comps = fit_result.eval_components() + fit = scan.get("fit") + if fit is not None: + comps = fit.eval_components() plot_gauss_source.data.update(x=x, y=comps["f1_"]) plot_bkg_source.data.update(x=x, y=comps["f0_"]) - fit_output_textinput.value = fit_result.fit_report() + fit_output_textinput.value = fit.fit_report() - # numfit_min, numfit_max = fit_result["numfit"] + # numfit_min, numfit_max = fit["numfit"] # if numfit_min is None: # numfit_min_span.location = None # else: diff --git a/pyzebra/app/panel_param_study.py b/pyzebra/app/panel_param_study.py index 862ab5c..b4963e2 100644 --- a/pyzebra/app/panel_param_study.py +++ b/pyzebra/app/panel_param_study.py @@ -226,14 +226,14 @@ def create(): peak_pos_textinput_lock = False - fit_result = scan.get("fit_result") - if fit_result is not None: - comps = fit_result.eval_components() + fit = scan.get("fit") + if fit is not None: + comps = fit.eval_components() plot_gauss_source.data.update(x=x, y=comps["f1_"]) plot_bkg_source.data.update(x=x, y=comps["f0_"]) - fit_output_textinput.value = fit_result.fit_report() + fit_output_textinput.value = fit.fit_report() - # numfit_min, numfit_max = fit_result["numfit"] + # numfit_min, numfit_max = fit["numfit"] # if numfit_min is None: # numfit_min_span.location = None # else: diff --git a/pyzebra/ccl_process.py b/pyzebra/ccl_process.py index 16a3755..fe54a75 100644 --- a/pyzebra/ccl_process.py +++ b/pyzebra/ccl_process.py @@ -121,4 +121,4 @@ def fit_scan(scan, model_dict): else: model += _model - scan["fit_result"] = model.fit(y_fit, x=x_fit) + scan["fit"] = model.fit(y_fit, x=x_fit)