Commit f3329c2d authored by Johannes Pfeifer 's avatar Johannes Pfeifer

compute_moments_varendo.m: delete stale results field

Otherwise, results from old runs will not be updated
parent ac728c04
......@@ -42,6 +42,9 @@ if strcmpi(type,'posterior')
if nargin==4
var_list_ = options_.varobs;
end
if isfield(oo_,'PosteriorTheoreticalMoments')
oo_=rmfield(oo_,'PosteriorTheoreticalMoments');
end
elseif strcmpi(type,'prior')
posterior = 0;
if nargin==4
......@@ -50,6 +53,9 @@ elseif strcmpi(type,'prior')
options_.prior_analysis_var_list = options_.varobs;
end
end
if isfield(oo_,'PriorTheoreticalMoments')
oo_=rmfield(oo_,'PriorTheoreticalMoments');
end
else
error('compute_moments_varendo:: Unknown type!')
end
......
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