Merge pull request #1002 from JohannesPfeifer/dname
Initialize M_.dname=M_.fname in global_initialization.mtime-shift
commit
bbd12a226e
|
@ -9382,7 +9382,7 @@ parameters were correctly updated. The long names can be used to add parameter d
|
||||||
following @LaTeX{} packages: @code{longtable}
|
following @LaTeX{} packages: @code{longtable}
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@deffn {MATLAB/Octave command} collect_LaTeX_Files(M_,options_) ;
|
@deffn {MATLAB/Octave command} collect_LaTeX_Files(M_) ;
|
||||||
|
|
||||||
Writes a @LaTeX{} file named @code{<<M_.fname>>_TeX_binder.tex} that collects all @TeX{} output generated by Dynare
|
Writes a @LaTeX{} file named @code{<<M_.fname>>_TeX_binder.tex} that collects all @TeX{} output generated by Dynare
|
||||||
into a file. This file can be compiled using pdflatex and automatically tries to load all required packages.
|
into a file. This file can be compiled using pdflatex and automatically tries to load all required packages.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
function collect_LaTeX_Files(M_,options_)
|
function collect_LaTeX_Files(M_)
|
||||||
% function collect_LaTeX_Files(M_);
|
% function collect_LaTeX_Files(M_);
|
||||||
% Creates TeX-File embedding all eps-loaders created for current mod-file
|
% Creates TeX-File embedding all eps-loaders created for current mod-file
|
||||||
%
|
%
|
||||||
|
@ -39,12 +39,6 @@ fprintf(fid,'%s \n','\usepackage{breqn}');
|
||||||
fprintf(fid,'%s \n','\usepackage{float}');
|
fprintf(fid,'%s \n','\usepackage{float}');
|
||||||
fprintf(fid,'%s \n','\begin{document}');
|
fprintf(fid,'%s \n','\begin{document}');
|
||||||
|
|
||||||
if ~isfield(M_,'dname')
|
|
||||||
dname = options_.dirname;
|
|
||||||
else
|
|
||||||
dname = M_.dname;
|
|
||||||
end
|
|
||||||
|
|
||||||
%% Root directory
|
%% Root directory
|
||||||
TeX_Files=dir([M_.fname,'*.TeX']);
|
TeX_Files=dir([M_.fname,'*.TeX']);
|
||||||
for ii=1:length(TeX_Files)
|
for ii=1:length(TeX_Files)
|
||||||
|
@ -58,20 +52,20 @@ for ii=1:length(TeX_Files)
|
||||||
end
|
end
|
||||||
|
|
||||||
%% Output directory
|
%% Output directory
|
||||||
TeX_Files=dir([dname filesep 'Output' filesep M_.fname '*.TeX']);
|
TeX_Files=dir([M_.dname filesep 'Output' filesep M_.fname '*.TeX']);
|
||||||
for ii=1:length(TeX_Files)
|
for ii=1:length(TeX_Files)
|
||||||
[pathstr,f_name,ext] = fileparts(TeX_Files(ii).name);
|
[pathstr,f_name,ext] = fileparts(TeX_Files(ii).name);
|
||||||
if ~strcmp(TeX_Files(ii).name,f_name_binder)
|
if ~strcmp(TeX_Files(ii).name,f_name_binder)
|
||||||
fprintf(fid,'%s \n',['\include{', dname '/Output' '/',f_name,'}']);
|
fprintf(fid,'%s \n',['\include{', M_.dname '/Output' '/',f_name,'}']);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
%5 graphs directory
|
%5 graphs directory
|
||||||
TeX_Files=dir([dname filesep 'graphs' filesep M_.fname '*.TeX']);
|
TeX_Files=dir([M_.dname filesep 'graphs' filesep M_.fname '*.TeX']);
|
||||||
for ii=1:length(TeX_Files)
|
for ii=1:length(TeX_Files)
|
||||||
[pathstr,f_name,ext] = fileparts(TeX_Files(ii).name);
|
[pathstr,f_name,ext] = fileparts(TeX_Files(ii).name);
|
||||||
if ~strcmp(TeX_Files(ii).name,f_name_binder)
|
if ~strcmp(TeX_Files(ii).name,f_name_binder)
|
||||||
fprintf(fid,'%s \n',['\include{', dname '/graphs' '/',f_name,'}']);
|
fprintf(fid,'%s \n',['\include{', M_.dname '/graphs' '/',f_name,'}']);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -45,9 +45,6 @@ else
|
||||||
end
|
end
|
||||||
|
|
||||||
fname_ = M_.fname;
|
fname_ = M_.fname;
|
||||||
if ~isfield(M_,'dname'),
|
|
||||||
M_.dname = M_.fname;
|
|
||||||
end
|
|
||||||
options_ident = set_default_option(options_ident,'gsa_sample_file',0);
|
options_ident = set_default_option(options_ident,'gsa_sample_file',0);
|
||||||
options_ident = set_default_option(options_ident,'parameter_set','prior_mean');
|
options_ident = set_default_option(options_ident,'parameter_set','prior_mean');
|
||||||
options_ident = set_default_option(options_ident,'load_ident_files',0);
|
options_ident = set_default_option(options_ident,'load_ident_files',0);
|
||||||
|
|
|
@ -28,9 +28,6 @@ if options_.dsge_var
|
||||||
end
|
end
|
||||||
|
|
||||||
fname_ = M_.fname;
|
fname_ = M_.fname;
|
||||||
if ~isfield(M_,'dname'),
|
|
||||||
M_.dname = M_.fname;
|
|
||||||
end
|
|
||||||
lgy_ = M_.endo_names;
|
lgy_ = M_.endo_names;
|
||||||
x0=[];
|
x0=[];
|
||||||
|
|
||||||
|
|
|
@ -29,11 +29,8 @@ nc = 4;
|
||||||
nr = 3;
|
nr = 3;
|
||||||
endo_names = M_.endo_names;
|
endo_names = M_.endo_names;
|
||||||
fname = M_.fname;
|
fname = M_.fname;
|
||||||
if ~isfield(M_,'dname')
|
dname = M_.dname;
|
||||||
dname = options_.dirname;
|
|
||||||
else
|
|
||||||
dname = M_.dname;
|
|
||||||
end
|
|
||||||
yf = oo_.forecast.Mean;
|
yf = oo_.forecast.Mean;
|
||||||
hpdinf = oo_.forecast.HPDinf;
|
hpdinf = oo_.forecast.HPDinf;
|
||||||
hpdsup = oo_.forecast.HPDsup;
|
hpdsup = oo_.forecast.HPDsup;
|
||||||
|
|
|
@ -34,6 +34,7 @@ estim_params_ = [];
|
||||||
bayestopt_ = [];
|
bayestopt_ = [];
|
||||||
options_.datafile = '';
|
options_.datafile = '';
|
||||||
options_.dirname = M_.fname;
|
options_.dirname = M_.fname;
|
||||||
|
M_.dname = M_.fname;
|
||||||
options_.dataset = [];
|
options_.dataset = [];
|
||||||
options_.verbosity = 1;
|
options_.verbosity = 1;
|
||||||
options_.terminal_condition = 0;
|
options_.terminal_condition = 0;
|
||||||
|
|
|
@ -162,7 +162,7 @@ end;
|
||||||
estimation(mode_compute=9,order=1,datafile='../fs2000/fsdat_simul',mode_check,smoother,filter_decomposition,mh_replic=2002, mh_nblocks=2, mh_jscale=0.8,forecast = 8,bayesian_irf,filtered_vars,filter_step_ahead=[1,3],irf=20,moments_varendo) m P c e W R k d y;
|
estimation(mode_compute=9,order=1,datafile='../fs2000/fsdat_simul',mode_check,smoother,filter_decomposition,mh_replic=2002, mh_nblocks=2, mh_jscale=0.8,forecast = 8,bayesian_irf,filtered_vars,filter_step_ahead=[1,3],irf=20,moments_varendo) m P c e W R k d y;
|
||||||
shock_decomposition y W R;
|
shock_decomposition y W R;
|
||||||
|
|
||||||
collect_LaTeX_Files(M_,options_);
|
collect_LaTeX_Files(M_);
|
||||||
|
|
||||||
//identification(advanced=1,max_dim_cova_group=3,prior_mc=250);
|
//identification(advanced=1,max_dim_cova_group=3,prior_mc=250);
|
||||||
if system(['pdflatex -halt-on-error ' M_.fname '_TeX_binder.TeX'])
|
if system(['pdflatex -halt-on-error ' M_.fname '_TeX_binder.TeX'])
|
||||||
|
|
Loading…
Reference in New Issue