1
0
forked from IPKM/nmreval

check if start parameter of fits are given; closes #157

This commit is contained in:
Dominik Demuth 2023-11-29 19:24:57 +01:00
parent e662dcf03c
commit edf69b6424

View File

@ -286,7 +286,10 @@ class QFitDialog(QtWidgets.QWidget, Ui_FitDialog):
if model_name in data: if model_name in data:
parameter, _ = self._prepare(model_parameter, function_use=data[model_name], add_idx=isinstance(func, MultiModel)) parameter, _ = self._prepare(model_parameter, function_use=data[model_name], add_idx=isinstance(func, MultiModel))
if parameter is None: if parameter is None or not isinstance(parameter, dict):
return
if ('data_parameter' not in parameter) or ('global_parameter' not in parameter):
return return
for (data_parameter, _) in parameter['data_parameter'].values(): for (data_parameter, _) in parameter['data_parameter'].values():