diff --git a/src/dynare_gui.m b/src/dynare_gui.m index 04641ed9d8be69c13af6704808160e4bdf18f879..622da14dfedcea80e3977a06f151ed529b745af8 100644 --- a/src/dynare_gui.m +++ b/src/dynare_gui.m @@ -139,26 +139,26 @@ if (exist('M_', 'var') && isstruct(M_)) || (exist('oo_', 'var') && isstruct(oo_) project_info.observed_variables_set = true; end if project_info.project_model_stochastic - if isfield(oo_, 'dr') && isfield(oo_, 'mean') && isfield(oo_, 'var') && isfield(oo_, 'autocorr') + if oo_.gui.ran_stoch_simul project_info.stochastic_simulation_run = true; end if isfield(oo_, 'datafile') || isfield(oo_, 'dataset') project_info.observed_variables_set = true; end - if isfield(oo_, 'SmoothedVariables') + if oo_.gui.ran_calib_smoother project_info.calibrated_smoother_run = true; end - if isfield(oo_, 'dr') && isfield(oo_.dr, 'ghu') + if oo_.gui.ran_estimation project_info.estimation_run = true; end - if isfield(oo_, 'shock_decomposition') && ~isempty(oo_.shock_decomposition) + if oo_.gui.ran_shock_decomposition project_info.shock_decomposition_run = true; end - if isfield(oo_, 'realtime_shock_decomposition') && ~isempty(oo_.realtime_shock_decomposition) + if oo_.gui.ran_realtime_shock_decomposition project_info.realtime_shock_decomposition_run = true; end else - if isfield(oo_, 'endo_simul') || isfield(oo_, 'exo_simul') + if oo_.gui.ran_perfect_foresight project_info.deterministic_simulation_run = true; end end