Filter out case where estimated_params block is present but smoother on calibration is requested

In this case, xparam1 will be empty while estim_params_ does not have conformable dimensions.
time-shift
Johannes Pfeifer 2015-06-09 14:51:32 +02:00
parent 8bc946c148
commit 22b1aa7a0d
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ decomp = [];
vobs = length(options_.varobs);
smpl = size(Y,2);
M_ = set_all_parameters(xparam1,estim_params_,M_);
if ~isempty(xparam1) %not calibrated model
M_ = set_all_parameters(xparam1,estim_params_,M_);
end
%------------------------------------------------------------------------------
% 2. call model setup & reduction program