diff --git a/src/solutions/solution_interface.jl b/src/solutions/solution_interface.jl index 8437c73eed..1ee137a752 100644 --- a/src/solutions/solution_interface.jl +++ b/src/solutions/solution_interface.jl @@ -58,6 +58,10 @@ SymbolicIndexingInterface.is_time_dependent(::AbstractNoTimeSolution) = false # TODO make this nontrivial once dynamic state selection works SymbolicIndexingInterface.constant_structure(::AbstractSolution) = true +Base.@propagate_inbounds function Base.getindex(A::AbstractTimeseriesSolution, ::Colon) + return A.u[:] +end + Base.@propagate_inbounds function Base.getindex(A::AbstractNoTimeSolution, sym) if symbolic_type(sym) == ScalarSymbolic() if is_variable(A, sym)