make plot_contributions use get_ast_jsonmodel
parent
9a61c57102
commit
03eaac8b6d
|
@ -22,7 +22,7 @@ function plot_contributions(equationname, ds1, ds0)
|
||||||
% [name='Phillips curve']
|
% [name='Phillips curve']
|
||||||
% pi = beta*pi(1) + slope*y + lam;
|
% pi = beta*pi(1) + slope*y + lam;
|
||||||
|
|
||||||
% Copyright (C) 2017 Dynare Team
|
% Copyright (C) 2017-2019 Dynare Team
|
||||||
%
|
%
|
||||||
% This file is part of Dynare.
|
% This file is part of Dynare.
|
||||||
%
|
%
|
||||||
|
@ -98,9 +98,7 @@ else
|
||||||
end
|
end
|
||||||
|
|
||||||
% Get equation.
|
% Get equation.
|
||||||
jsonmodel = loadjson(jsonfile);
|
[~, jsonmodel] = get_ast_jsonmodel(eqtags);
|
||||||
jsonmodel = jsonmodel.model;
|
|
||||||
jsonmodel = getEquationsByTags(jsonmodel, 'name', equationname);
|
|
||||||
lhs = jsonmodel{1}.lhs;
|
lhs = jsonmodel{1}.lhs;
|
||||||
rhs = jsonmodel{1}.rhs;
|
rhs = jsonmodel{1}.rhs;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue