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
Sébastien Villemot
dseries
Commits
113314b0
Commit
113314b0
authored
Sep 21, 2017
by
Stéphane Adjemian
Browse files
Fixed bug. Missing ops and tags members when extracting variables.
parent
1bd72c96
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/@dseries/subsref.m
View file @
113314b0
...
...
@@ -225,6 +225,8 @@ switch S(1).type
B
.
name
=
A
.
name
;
B
.
tex
=
A
.
tex
;
B
.
dates
=
A
.
dates
(
tdx
);
B
.
ops
=
A
.
ops
;
B
.
tags
=
A
.
tags
;
elseif
isvector
(
S
(
1
).
subs
{
1
})
&&
all
(
isint
(
S
(
1
).
subs
{
1
}))
error
(
'
dseries
::
subsref
:
It
is
not
possible
to
select
observations
with
a
vector
of
integers
.
You
have
to
index
with
a
dates
object
instead
!
'
);
else
...
...
@@ -243,6 +245,11 @@ switch S(1).type
B
.
name
=
A
.
name
(
idx
);
B
.
tex
=
A
.
tex
(
idx
);
B
.
dates
=
A
.
dates
;
B
.
ops
=
A
.
ops
(
idx
);
tagnames
=
fieldnames
(
A
.
tags
);
for
i
=
1
:
length
(
tagnames
)
B
.
tags
.(
tagnames
{
i
})
=
A
.
tags
.(
tagnames
{
i
})(
idx
);
end
else
error
(
'
dseries
::
subsref
:
What
the
Hell
are
you
tryin
''
to
do
?
!
'
)
end
...
...
Write
Preview
Markdown
is supported
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