make plot_contributions use get_ast_jsonmodel

time-shift
Houtan Bastani 2019-01-15 10:50:01 +01:00
parent 9a61c57102
commit 03eaac8b6d
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
2 changed files with 2 additions and 4 deletions

View File

@ -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;