Commit afb5be20 authored by Stéphane Adjemian's avatar Stéphane Adjemian

Set options_.nobs if the new data interface is used.

parent 5b082238
......@@ -452,7 +452,12 @@ k = find(isnan(bayestopt_.jscale));
bayestopt_.jscale(k) = options_.mh_jscale;
% Build the dataset
[dataset_, dataset_info] = makedataset(options_, options_.dsge_var*options_.dsge_varlag, gsa_flag);
[dataset_, dataset_info, newdatainterfaceflag] = makedataset(options_, options_.dsge_var*options_.dsge_varlag, gsa_flag);
% Set options_.nobs if needed
if newdatainterfaceflag
options_.nobs = dataset_.nobs;
end
% setting steadystate_check_flag option
if options_.diffuse_filter
......
function [DynareDataset, DatasetInfo] = makedataset(DynareOptions, initialconditions, gsa_flag)
function [DynareDataset, DatasetInfo, newdatainterface] = makedataset(DynareOptions, initialconditions, gsa_flag)
% Initialize a dataset as a dseries object.
%
......
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