Fixed bug (wrong first input argument when calling create_TeX_loader).

Fixes the error reported by the testsuite on ls2003a.mod.
time-shift
Stéphane Adjemian (Hermes) 2016-03-05 21:28:16 +01:00
parent d4195ae624
commit f471105a21
1 changed files with 4 additions and 4 deletions

View File

@ -303,7 +303,7 @@ if ~isempty(indx_irf),
end
if ~DynareOptions.nograph,
dyn_saveas(h1,[OutputDirectoryName,filesep,fname_,'_',type,'_irf_restrictions'],DynareOptions);
create_TeX_loader(options_,[OutputDirectoryName,filesep,fname_,'_',type,'_irf_restrictions'],[type ' evaluation of irf restrictions'],'irf_restrictions',type)
create_TeX_loader(DynareOptions,[OutputDirectoryName,filesep,fname_,'_',type,'_irf_restrictions'],[type ' evaluation of irf restrictions'],'irf_restrictions',type)
end
skipline()
end
@ -495,15 +495,15 @@ if ~isempty(indx_moment)
end
if ~DynareOptions.nograph,
dyn_saveas(h2,[OutputDirectoryName,filesep,fname_,'_',type,'_moment_restrictions'],DynareOptions);
create_TeX_loader(options_,[OutputDirectoryName,filesep,fname_,'_',type,'_moment_restrictions'],[type ' evaluation of moment restrictions'],'moment_restrictions',type)
create_TeX_loader(DynareOptions,[OutputDirectoryName,filesep,fname_,'_',type,'_moment_restrictions'],[type ' evaluation of moment restrictions'],'moment_restrictions',type)
end
skipline()
end
return
function []=create_TeX_loader(options_,figpath,caption,label_name,label_type)
if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format)))
function []=create_TeX_loader(options,figpath,caption,label_name,label_type)
if options.TeX && any(strcmp('eps',cellstr(options.graph_format)))
fidTeX = fopen([figpath '.TeX'],'w');
fprintf(fidTeX,'%% TeX eps-loader file generated by map_calibration.m (Dynare).\n');
fprintf(fidTeX,['%% ' datestr(now,0) '\n\n']);