Adapted codes to the json files new location.

time-shift
Stéphane Adjemian(Charybdis) 2018-07-10 20:15:53 +02:00
parent 24e2a76c39
commit c5ebb2ca30
5 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ global M_ oo_ options_
assert(nargin >= 1 && nargin <= 3, 'dyn_ols: takes between 1 and 3 arguments');
assert(isdseries(ds), 'dyn_ols: the first argument must be a dseries');
jsonfile = [M_.fname '_original.json'];
jsonfile = [M_.fname filesep() 'model' filesep() 'json' filesep() 'modfile-original.json']);
if exist(jsonfile, 'file') ~= 2
error('Could not find %s! Please use the json=compute option (See the Dynare invocation section in the reference manual).', jsonfile);
end

View File

@ -30,7 +30,7 @@ function olseqs(ds, varargin)
global M_ oo_
jsonfile = [M_.fname '_original.json'];
jsonfile = [M_.fname filesep() 'model' filesep() 'json' filesep() 'modfile-original.json']);
if exist(jsonfile, 'file') ~= 2
error('Could not find %s! Please use the json option (See the Dynare invocation section in the reference manual).', jsonfile);
end

View File

@ -62,7 +62,7 @@ else
end
%% Read JSON
jsonfile = [M_.fname '_original.json'];
jsonfile = [M_.fname filesep() 'model' filesep() 'json' filesep() 'modfile-original.json']);
if exist(jsonfile, 'file') ~= 2
error('Could not find %s! Please use the json=compute option (See the Dynare invocation section in the reference manual).', jsonfile);
end

View File

@ -43,7 +43,7 @@ else
end
%% Read JSON
jsonfile = [M_.fname '_original.json'];
jsonfile = [M_.fname filesep() 'model' filesep() 'json' filesep() 'modfile-original.json'];
if exist(jsonfile, 'file') ~= 2
error('Could not find %s! Please use the json=compute option (See the Dynare invocation section in the reference manual).', jsonfile);
end

View File

@ -41,7 +41,7 @@ function plot_contributions(equationname, ds1, ds0)
global M_
jsonfile = [M_.fname '_original.json'];
jsonfile = [M_.fname filesep() 'model' filesep() 'json' filesep() 'modfile-original.json'];
if exist(jsonfile, 'file') ~= 2
error('Could not find %s! Please use the json option (See the Dynare invocation section in the reference manual).', jsonfile);
end