forked from IPKM/nmreval
Everything knows that SelectionWidget returns dict not values
This commit is contained in:
parent
22217f0544
commit
ef81030213
@ -241,7 +241,7 @@ class QFitParameterWidget(QtWidgets.QWidget, Ui_FormFit):
|
||||
|
||||
else:
|
||||
if p_i is None:
|
||||
kw_p[g.argname] = g.value
|
||||
kw_p.update(g.value)
|
||||
else:
|
||||
kw_p[g.argname] = p_i
|
||||
|
||||
|
@ -59,8 +59,12 @@ class QCoupCalcDialog(QtWidgets.QDialog, Ui_coupling_calc_dialog):
|
||||
|
||||
def calc_coupling(self):
|
||||
p = []
|
||||
kw = {}
|
||||
for pp in self._coupling_parameter:
|
||||
if isinstance(pp, FormWidget):
|
||||
p.append(pp.value)
|
||||
else:
|
||||
kw.update(pp.value)
|
||||
|
||||
self.label.setText('Coupling constant: %.8g' % self.cp[self.comboBox.currentIndex()].relax(*p))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user