Skip to content

Commit 443e151

Browse files
Merge pull request #61 from garibarba/patch-getindex-colon
Add missing method for indexing with `Colon`
2 parents 1daeeb3 + 9de9fca commit 443e151

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/solutions/solution_interface.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Base.getindex(A::AbstractNoTimeSolution,i::Int) = A.u[i]
77
Base.getindex(A::AbstractNoTimeSolution,I::Vararg{Int, N}) where {N} = A.u[I]
88
Base.getindex(A::AbstractNoTimeSolution,I::AbstractArray{Int}) = A.u[I]
99
Base.getindex(A::AbstractNoTimeSolution,I::CartesianIndex) = A.u[I]
10+
Base.getindex(A::AbstractNoTimeSolution,I::Colon) = A.u[I]
1011
Base.getindex(A::AbstractTimeseriesSolution,I::AbstractArray{Int}) = solution_slice(A,I)
1112
Base.setindex!(A::AbstractNoTimeSolution, v, i::Int) = (A.u[i] = v)
1213
Base.setindex!(A::AbstractNoTimeSolution, v, I::Vararg{Int, N}) where {N} = (A.u[I] = v)

0 commit comments

Comments
 (0)