Commit 17c7c3f0 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

reporting: add more info to stdout during processing/writing

parent a0f25ee6
......@@ -38,7 +38,6 @@ if ~o.seriesElements.numElements()
return;
end
disp('creating plot..........');
h = figure('visible','off');
hold on;
box on;
......
......@@ -29,5 +29,6 @@ function o = addPage(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
disp(['Processing Page: ' num2str(numPages(o)+1)]);
o.objArray = o.objArray.addObj(page(varargin{:}));
end
\ No newline at end of file
......@@ -33,6 +33,7 @@ assert(fid ~= -1);
fprintf(fid, '\n%% Pages Object\n');
nps = numPages(o);
for i=1:nps
disp(['Writing Page: ' num2str(i)]);
o.objArray(i).write(fid);
end
fprintf(fid, '%% End Pages Object\n\n');
......
......@@ -72,4 +72,5 @@ status = fclose(fid);
if status == -1
error('@report.wrie: closing %s\n', o.filename);
end
end
\ No newline at end of file
disp('Finished Writing Report!');
end
......@@ -30,5 +30,6 @@ function o = addGraph(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
disp(['Processing Section Element: ' num2str(numElements(o)+1)]);
o.elements = o.elements.addGraph(varargin{:});
end
......@@ -30,5 +30,6 @@ function o = addTable(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
disp(['Processing Section Element: ' num2str(numElements(o)+1)]);
o.elements = o.elements.addTable(varargin{:});
end
......@@ -29,5 +29,6 @@ function o = addVspace(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
disp(['Processing Section Element: ' num2str(numElements(o)+1)]);
o.elements = o.elements.addVspace(varargin{:});
end
......@@ -51,6 +51,7 @@ ne = numElements(o);
nvspace = numVspace(o);
nlcounter = 0;
for i=1:ne
disp(['Writing Section Element: ' num2str(i)]);
if isa(o.elements(i), 'vspace')
assert(rem(nlcounter, o.cols) == 0, ['@section.write: must place ' ...
'vspace command after a linebreak in the table ' ...
......
function ss = addSection(ss, varargin)
% function ss = addSection(ss, varargin)
function o = addSection(o, varargin)
% function o = addSection(o, varargin)
% Copyright (C) 2013 Dynare Team
%
......@@ -18,5 +18,6 @@ function ss = addSection(ss, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
ss.objArray = ss.objArray.addObj(section(varargin{:}));
disp(['Processing Section: ' num2str(numSections(o)+1)]);
o.objArray = o.objArray.addObj(section(varargin{:}));
end
\ No newline at end of file
......@@ -33,6 +33,7 @@ assert(fid ~= -1);
fprintf(fid, '\n%% Sections Object\n');
nps = numSections(o);
for i=1:nps
disp(['Writing Section: ' num2str(i)]);
o.objArray(i).write(fid);
end
fprintf(fid, '%% End Sections Object\n\n');
......
......@@ -49,7 +49,6 @@ else
end
ndates = dates.ndat;
disp('creating table.........');
fprintf(fid, '%% Table Object\n');
fprintf(fid, '\\setlength{\\tabcolsep}{4pt}\n');
fprintf(fid, '\\begin{tabular}{@{}l');
......
Supports Markdown
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