Skip to content

Commit 1fdb294

Browse files
fix: fix timeseries detection for shifted variables in DDEs
1 parent 0c015c9 commit 1fdb294

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/systems/abstractsystem.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,9 @@ for traitT in [
766766
push!(ts_idxs, ContinuousTimeseries())
767767
elseif is_timeseries_parameter(sys, s)
768768
push!(ts_idxs, timeseries_parameter_index(sys, s).timeseries_idx)
769+
elseif is_time_dependent(sys) && iscall(s) && issym(operation(s)) && is_variable(sys, operation(s)(get_iv(sys)))
770+
# DDEs case, to detect x(t - k)
771+
push!(ts_idxs, ContinuousTimeseries())
769772
elseif has_index_cache(sys) && (ic = get_index_cache(sys)) !== nothing
770773
if (ts = get(ic.observed_syms_to_timeseries, s, nothing)) !== nothing
771774
union!(ts_idxs, ts)

0 commit comments

Comments
 (0)