From a2a95e796af4b43eb85ce9675457b6b499fdd0dd Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Thu, 4 Jul 2024 10:37:43 +0000 Subject: [PATCH] wrong addition to parameter length in iterator (#278) fixes #277 Reviewed-on: https://gitea.pkm.physik.tu-darmstadt.de/IPKM/nmreval/pulls/278 --- src/gui_qt/fit/fitwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui_qt/fit/fitwindow.py b/src/gui_qt/fit/fitwindow.py index a5a4fd0..443e894 100644 --- a/src/gui_qt/fit/fitwindow.py +++ b/src/gui_qt/fit/fitwindow.py @@ -495,7 +495,7 @@ class QFitDialog(QtWidgets.QWidget, Ui_FitDialog): if model_p['active']: cnt += self.param_widgets[model_p['cnt']].set_parameter(fit_id, param[cnt:]) if model_p['children']: - cnt += self.set_parameter_iter(fit_id, param, model_p['children'], cnt=cnt) + cnt = self.set_parameter_iter(fit_id, param, model_p['children'], cnt=cnt) return cnt