1
0
forked from IPKM/nmreval

ignore sets without start parameter in fit prep

This commit is contained in:
Dominik Demuth 2023-12-01 17:58:48 +01:00
parent 843866be45
commit 728eb34ca7

View File

@ -467,15 +467,15 @@ class UpperManagement(QtCore.QObject):
m_complex = model_p['complex']
for set_id in list_ids:
if set_id not in model_p['data_parameter']:
continue
try:
data_i = self.data[set_id]
except KeyError as e:
raise KeyError(f'{set_id} not found') from e
try:
set_params = model_p['data_parameter'][set_id]
except KeyError as e:
raise KeyError(f'No parameter found for {set_id}') from e
if we_option.lower() == 'deltay':
we = data_i.y_err**2