Unverified Commit 0cef7904 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Preprocessor: fix treatment of “series” option of “initval_file”

As a consequence, adapt histval_initvalf.m to the new format.
parent caef9e26
......@@ -12,7 +12,7 @@ function series = histvalf_initvalf(caller, M, options)
% series: dseries containing selected data from a file or a dseries
%
% Copyright (C) 2003-2020 Dynare Team
% Copyright (C) 2003-2021 Dynare Team
%
% This file is part of Dynare.
%
......@@ -32,7 +32,7 @@ function series = histvalf_initvalf(caller, M, options)
% dseries
if isfield(options, 'series')
series = options.series;
series = evalin('base', options.series);
dseries_ispresent = true;
else
dseries_ispresent = false;
......@@ -230,4 +230,4 @@ else
last_obs = series.last;
end
series = series(first_obs:last_obs);
\ No newline at end of file
series = series(first_obs:last_obs);
Subproject commit 7b3df21f11b81c83938abd982575260ab61c993a
Subproject commit 910649dd28ea3f78d6cf4cb245a2747207828bf5
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment