From 311157a01a742121fce2a3aee5e76cd44f5e11a9 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Sun, 3 Sep 2023 20:17:07 +0200 Subject: [PATCH] fix parameter setting after fitting multiple models --- src/gui_qt/fit/fitwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui_qt/fit/fitwindow.py b/src/gui_qt/fit/fitwindow.py index ea66eef..55116b7 100644 --- a/src/gui_qt/fit/fitwindow.py +++ b/src/gui_qt/fit/fitwindow.py @@ -465,9 +465,9 @@ class QFitDialog(QtWidgets.QWidget, Ui_FitDialog): # which data uses which model data = self.data_table.collect_data(default=self.default_combobox.currentData()) - glob_fit_parameter = [] - for fitted_model, fitted_data in data.items(): + glob_fit_parameter = [] + for fit_id, fit_curve in parameter.items(): if fit_id in fitted_data: fit_parameter = list(fit_curve.parameter.values())