From f60e125487be76d412c0f2e3c7c77cca709c6877 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Fri, 19 May 2023 16:41:24 +0200 Subject: [PATCH] display parameter name with number ind window --- src/gui_qt/fit/result.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui_qt/fit/result.py b/src/gui_qt/fit/result.py index 22ef2a1..d854ce4 100644 --- a/src/gui_qt/fit/result.py +++ b/src/gui_qt/fit/result.py @@ -113,8 +113,8 @@ class QFitResult(QtWidgets.QDialog, Ui_Dialog): res = self._results[set_id] self.param_tableWidget.setRowCount(len(res.parameter)) - for j, pvalue in enumerate(res.parameter.values()): - name = pvalue.name + for j, (pkey, pvalue) in enumerate(res.parameter.items()): + name = pkey p_header = QtWidgets.QTableWidgetItem(convert(name, 'tex', 'str', brackets=True)) self.param_tableWidget.setVerticalHeaderItem(j, p_header)