Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dynare
dynare
Commits
5d8da65e
Commit
5d8da65e
authored
Jun 08, 2015
by
Johannes Pfeifer
Browse files
Add check for unique data entries in dataset
Leads to cryptic crashes if not filtered out
parent
41155369
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/utilities/dataset/makedataset.m
View file @
5d8da65e
...
...
@@ -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
{:}};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment