Skip to content
Snippets Groups Projects
Verified Commit 9b4ef14f authored by Houtan Bastani's avatar Houtan Bastani
Browse files

plot_shock_decomposition: always display all realtime options

parent 5834f6a6
No related branches found
No related tags found
No related merge requests found
...@@ -331,18 +331,11 @@ handles.pushbuttonClose = uicontrol( ... ...@@ -331,18 +331,11 @@ handles.pushbuttonClose = uicontrol( ...
'String', 'realtime:', ... 'String', 'realtime:', ...
'HorizontalAlignment', 'left'); 'HorizontalAlignment', 'left');
if project_info.stochastic_simulation_run && project_info.realtime_shock_decomposition_run realtimestring = {'standard historical shock decomposition', ...
realtimestring = {'standard historical shock decomposition', ... 'realtime historical shock decomposition', ...
'realtime historical shock decomposition', ... 'conditional realtime shock decomposition', ...
'conditional realtime shock decomposition', ... 'realtime forecast shock decomposition'};
'realtime forecast shock decomposition'};
elseif project_info.stochastic_simulation_run
realtimestring = {'standard historical shock decomposition'};
else
realtimestring = {'realtime historical shock decomposition', ...
'conditional realtime shock decomposition', ...
'realtime forecast shock decomposition'};
end
handles.realtime = uicontrol( ... handles.realtime = uicontrol( ...
'Parent', handles.uipanelResults, ... 'Parent', handles.uipanelResults, ...
'Tag', 'realtime', ... 'Tag', 'realtime', ...
...@@ -443,13 +436,7 @@ handles.pushbuttonClose = uicontrol( ... ...@@ -443,13 +436,7 @@ handles.pushbuttonClose = uicontrol( ...
options_.plot_shock_decomp.write_xls = true; options_.plot_shock_decomp.write_xls = true;
end end
if project_info.stochastic_simulation_run && project_info.realtime_shock_decomposition_run options_.plot_shock_decomp.realtime = handles.realtime.Value - 1;
options_.plot_shock_decomp.realtime = handles.realtime.Value - 1;
elseif project_info.stochastic_simulation_run
options_.plot_shock_decomp.realtime = 0;
else
options_.plot_shock_decomp.realtime = handles.realtime.Value;
end
gui_tools.project_log_entry('Running plot shock decomposition', '...'); gui_tools.project_log_entry('Running plot shock decomposition', '...');
[jObj, guiObj] = gui_tools.create_animated_screen('Running plot shock decomposition, please wait...', tabId); [jObj, guiObj] = gui_tools.create_animated_screen('Running plot shock decomposition, please wait...', tabId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment