Do not update the database if there is no aux. variables.
parent
b297353b06
commit
1cf99b5227
|
@ -58,7 +58,9 @@ if ~isempty(regexp(rhs, '\w+\(\d+\)', 'match'))
|
||||||
end
|
end
|
||||||
|
|
||||||
% Update database (for auxiliaries)
|
% Update database (for auxiliaries)
|
||||||
data = feval([M_.fname '.dynamic_set_auxiliary_series'], data, M_.params);
|
if M_.endo_nbr>M_.orig_endo_nbr
|
||||||
|
data = feval([M_.fname '.dynamic_set_auxiliary_series'], data, M_.params);
|
||||||
|
end
|
||||||
|
|
||||||
%
|
%
|
||||||
% Check estimation range.
|
% Check estimation range.
|
||||||
|
|
|
@ -116,7 +116,9 @@ pnames_ = pnames_(permutation);
|
||||||
params = orderfields(params, permutation);
|
params = orderfields(params, permutation);
|
||||||
|
|
||||||
% Add the auxiliary variables in the dataset.
|
% Add the auxiliary variables in the dataset.
|
||||||
data = feval([M_.fname '.dynamic_set_auxiliary_series'], data, M_.params);
|
if M_.endo_nbr>M_.orig_endo_nbr
|
||||||
|
data = feval([M_.fname '.dynamic_set_auxiliary_series'], data, M_.params);
|
||||||
|
end
|
||||||
|
|
||||||
% Check that the data for endogenous variables have values.
|
% Check that the data for endogenous variables have values.
|
||||||
if any(isnan(data{enames{:}}(range).data(:)))
|
if any(isnan(data{enames{:}}(range).data(:)))
|
||||||
|
|
Loading…
Reference in New Issue