Skip to content

Commit a2369ba

Browse files
feat: support Tuple and NamedTuple in SII.get_all_timeseries_indexes
1 parent 1f86fa0 commit a2369ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/systems/abstractsystem.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,10 @@ function _all_ts_idxs!(ts_idxs, ::ScalarSymbolic, sys, sym::Symbol)
351351
push!(ts_idxs, timeseries_parameter_index(sys, s).timeseries_idx)
352352
end
353353
end
354-
function _all_ts_idxs!(ts_idxs, ::NotSymbolic, sys, sym::AbstractArray)
354+
function _all_ts_idxs!(ts_idxs, ::NotSymbolic, sys, sym::NamedTuple)
355+
_all_ts_idxs!(ts_idxs, NotSymbolic(), sys, values(sym))
356+
end
357+
function _all_ts_idxs!(ts_idxs, ::NotSymbolic, sys, sym::Union{AbstractArray, Tuple})
355358
for s in sym
356359
_all_ts_idxs!(ts_idxs, sys, s)
357360
end

0 commit comments

Comments
 (0)