display parameter name with number ind window

This commit is contained in:
Dominik Demuth 2023-05-19 16:41:24 +02:00
parent 1e9a390ae2
commit f60e125487

View File

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