Fixed bug related to the type of initial_period.

time-shift
Stéphane Adjemian (Charybdis) 2015-02-13 15:59:49 +01:00
parent ec896d8ca7
commit 3b41aa0e60
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ end
dyn2vec;
if isnan(options_.initial_period)
if ~isdates(options_.initial_period) && isnan(options_.initial_period)
initial_period = dates(1,1);
else
initial_period = options_.initial_period;