Skip to content
Snippets Groups Projects
Verified Commit 946179eb authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

compute_moments_varendo.m: delete stale results field

Otherwise, results from old runs will not be updated

(cherry picked from commit f3329c2d)
parent 7114f94c
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment