use vobs() instead of length(ds.name)

time-shift
Houtan Bastani 2019-01-22 15:23:42 +01:00
parent f514d443b6
commit 9d413e2f8f
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 2 additions and 2 deletions

View File

@ -112,8 +112,8 @@ while ~isempty(plus_node) || ~isempty(last_node_to_parse)
elseif strcmp(node_to_parse.node_type, 'BinaryOpNode') && strcmp(node_to_parse.op, '*')
% Parse param_expr * endog_expr
Xtmp = parseTimesNode(ds, node_to_parse, line);
if length(Xtmp.name) > 1 || ...
(length(Xtmp.name) == 1 && ~isnan(str2double(Xtmp.name)))
if Xtmp.vobs > 1 || ...
(Xtmp.vobs == 1 && ~isnan(str2double(Xtmp.name)))
% Handle constraits
% Look through Xtmp names for constant
% if found, subtract from LHS