Merge pull request #958 from JohannesPfeifer/unique_data_check

Add check for unique data entries in dataset
time-shift
Stéphane Adjemian 2015-06-08 11:42:30 +02:00
commit c593b78e4b
1 changed files with 4 additions and 0 deletions

View File

@ -110,6 +110,10 @@ else
clear('dseriesobjectforuserdataset');
end
if size(unique(DynareDataset.name),1)~=size(DynareDataset.name,1)
error('makedataset: the data set must not contain two variables with the same name and must not contain empty/non-named columns.')
end
% Select a subset of the variables.
DynareDataset = DynareDataset{DynareOptions.varobs{:}};