check if start parameter of fits are given; closes #157
This commit is contained in:
parent
e662dcf03c
commit
edf69b6424
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user