Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
reporting
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dynare
reporting
Commits
bcba4ae7
Verified
Commit
bcba4ae7
authored
Sep 02, 2019
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove superfluous asserts
parent
fd3b88a2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
13 deletions
+0
-13
src/@graph/write.m
src/@graph/write.m
+0
-1
src/@page/write.m
src/@page/write.m
+0
-2
src/@paragraph/write.m
src/@paragraph/write.m
+0
-1
src/@report_data/writeDataForTable.m
src/@report_data/writeDataForTable.m
+0
-4
src/@report_series/writeSeriesForTable.m
src/@report_series/writeSeriesForTable.m
+0
-1
src/@report_table/write.m
src/@report_table/write.m
+0
-1
src/@section/write.m
src/@section/write.m
+0
-1
src/@vspace/write.m
src/@vspace/write.m
+0
-2
No files found.
src/@graph/write.m
View file @
bcba4ae7
...
...
@@ -34,7 +34,6 @@ function write(o, fid, pg, sec, row, col, rep_dir)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert
(
fid
~=
-
1
);
graphName
=
writeGraphFile
(
o
,
pg
,
sec
,
row
,
col
,
rep_dir
);
fprintf
(
fid
,
'\\input{%s}'
,
graphName
);
end
\ No newline at end of file
src/@page/write.m
View file @
bcba4ae7
...
...
@@ -31,8 +31,6 @@ function write(o, fid, pg, rep_dir)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert
(
fid
~=
-
1
);
fprintf
(
fid
,
'\n%% Page Number %d written %s\n'
,
pg
,
datestr
(
now
));
if
strcmpi
(
o
.
orientation
,
'landscape'
)
fprintf
(
fid
,
'\\begin{landscape}\n'
);
...
...
src/@paragraph/write.m
View file @
bcba4ae7
...
...
@@ -29,7 +29,6 @@ function write(o, fid)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert
(
fid
~=
-
1
);
fprintf
(
fid
,
'%% Paragraph Object written %s\n'
,
datestr
(
now
));
fprintf
(
fid
,
'\\multicolumn{1}{p{\\linewidth}}{%%\n'
);
if
o
.
cols
~=
1
...
...
src/@report_data/writeDataForTable.m
View file @
bcba4ae7
...
...
@@ -31,10 +31,6 @@ function writeDataForTable(o, fid, precision)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
%% Validate options passed to function
assert
(
fid
~=
-
1
);
assert
(
isint
(
precision
));
%% Validate options provided by user
assert
(
ischar
(
o
.
tableSubSectionHeader
),
'@report_data.writeDataForTable: tableSubSectionHeader must be a string'
);
if
isempty
(
o
.
tableSubSectionHeader
)
...
...
src/@report_series/writeSeriesForTable.m
View file @
bcba4ae7
...
...
@@ -35,7 +35,6 @@ function writeSeriesForTable(o, fid, dates, precision, ncols, rowcolor)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
%% Validate options passed to function
assert
(
fid
~=
-
1
);
for
i
=
1
:
length
(
dates
)
assert
(
isdates
(
dates
{
i
}));
end
...
...
src/@report_table/write.m
View file @
bcba4ae7
...
...
@@ -34,7 +34,6 @@ function write(o, fid, pg, sec, row, col, rep_dir)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert
(
fid
~=
-
1
);
tableName
=
writeTableFile
(
o
,
pg
,
sec
,
row
,
col
,
rep_dir
);
fprintf
(
fid
,
'\\input{%s}'
,
tableName
);
end
src/@section/write.m
View file @
bcba4ae7
...
...
@@ -32,7 +32,6 @@ function write(o, fid, pg, sec, rep_dir)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert
(
fid
~=
-
1
);
fprintf
(
fid
,
'%% Section Object written %s\n'
,
datestr
(
now
));
if
isempty
(
o
.
elements
)
warning
([
'reporting:section.write(): trying to print a section '
...
...
...
src/@vspace/write.m
View file @
bcba4ae7
...
...
@@ -29,8 +29,6 @@ function o = write(o, fid)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
assert
(
fid
~=
-
1
);
fprintf
(
fid
,
repmat
(
' \\par \\medskip '
,
1
,
o
.
number
));
if
o
.
hline
>
0
fprintf
(
fid
,
[
'\\\\\n'
repmat
(
'\\midrule'
,
1
,
o
.
hline
)]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment