1
0
forked from IPKM/nmreval

fix parameter setting after fitting multiple models

This commit is contained in:
Dominik Demuth 2023-09-03 20:17:07 +02:00
parent d2e63a5ee3
commit 311157a01a

View File

@ -465,9 +465,9 @@ class QFitDialog(QtWidgets.QWidget, Ui_FitDialog):
# which data uses which model # which data uses which model
data = self.data_table.collect_data(default=self.default_combobox.currentData()) data = self.data_table.collect_data(default=self.default_combobox.currentData())
glob_fit_parameter = []
for fitted_model, fitted_data in data.items(): for fitted_model, fitted_data in data.items():
glob_fit_parameter = []
for fit_id, fit_curve in parameter.items(): for fit_id, fit_curve in parameter.items():
if fit_id in fitted_data: if fit_id in fitted_data:
fit_parameter = list(fit_curve.parameter.values()) fit_parameter = list(fit_curve.parameter.values())