forked from IPKM/nmreval
ignore sets without start parameter in fit prep
This commit is contained in:
parent
843866be45
commit
728eb34ca7
@ -467,15 +467,15 @@ class UpperManagement(QtCore.QObject):
|
|||||||
m_complex = model_p['complex']
|
m_complex = model_p['complex']
|
||||||
|
|
||||||
for set_id in list_ids:
|
for set_id in list_ids:
|
||||||
|
if set_id not in model_p['data_parameter']:
|
||||||
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
data_i = self.data[set_id]
|
data_i = self.data[set_id]
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
raise KeyError(f'{set_id} not found') from e
|
raise KeyError(f'{set_id} not found') from e
|
||||||
|
|
||||||
try:
|
|
||||||
set_params = model_p['data_parameter'][set_id]
|
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':
|
if we_option.lower() == 'deltay':
|
||||||
we = data_i.y_err**2
|
we = data_i.y_err**2
|
||||||
|
Loading…
Reference in New Issue
Block a user