1
0
forked from IPKM/nmreval

fixed overwrite of weight option for deltay, resulted in invalid weights; closes #117

This commit is contained in:
Dominik Demuth 2023-09-07 17:48:49 +02:00
parent 4e865cd0c6
commit e2e52cebde

View File

@ -434,7 +434,7 @@ class UpperManagement(QtCore.QObject):
models = {}
fit_limits = fit_options['limits']
fit_mode = fit_options['fit_mode']
we = fit_options['we']
we_option = fit_options['we']
for model_id, model_p in parameter.items():
m = Model(model_p['func'])
@ -453,8 +453,10 @@ class UpperManagement(QtCore.QObject):
data_i = self.data[set_id]
set_params = model_p['parameter'][set_id]
if we.lower() == 'deltay':
if we_option.lower() == 'deltay':
we = data_i.y_err**2
else:
we = we_option
if m_complex is None or m_complex == 1:
_y = data_i.y.real