wrong addition to parameter length in iterator #278

Merged
dominik merged 1 commits from 277-nested-function into master 2024-07-04 10:37:43 +00:00

View File

@ -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