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

As a consequence, adapt histval_initvalf.m to the new format.
time-shift
Sébastien Villemot 2021-04-20 10:44:18 +02:00
parent caef9e266b
commit 0cef790498
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 4 additions and 4 deletions

View File

@ -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);
series = series(first_obs:last_obs);

@ -1 +1 @@
Subproject commit 7b3df21f11b81c83938abd982575260ab61c993a
Subproject commit 910649dd28ea3f78d6cf4cb245a2747207828bf5