Commit c2c88600 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

More explicit error message when no estimated_params and no smoother

Closes: #222
parent cc26a1d8
......@@ -152,6 +152,9 @@ if ~isempty(estim_params_)
bayestopt_.lb = lb;
bayestopt_.ub = ub;
else% If estim_params_ is empty (e.g. when running the smoother on a calibrated model)
if ~options_.smoother
error('ESTIMATION: the ''estimated_params'' block is mandatory (unless you are running a smoother)')
end
xparam1 = [];
bayestopt_.lb = [];
bayestopt_.ub = [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment