From cb0a6b3050f7a8356c353520af6c97bf869b0a78 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Tue, 19 Nov 2024 17:26:01 -0500 Subject: [PATCH] fix: incorrect tuple indexing --- src/solutions/solution_interface.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solutions/solution_interface.jl b/src/solutions/solution_interface.jl index 1d0041cea..7905a28c2 100644 --- a/src/solutions/solution_interface.jl +++ b/src/solutions/solution_interface.jl @@ -4,7 +4,7 @@ const AllObserved = RecursiveArrayTools.AllObserved # No Time Solution : Forward to `A.u` Base.getindex(A::AbstractNoTimeSolution) = A.u[] Base.getindex(A::AbstractNoTimeSolution, i::Int) = A.u[i] -Base.getindex(A::AbstractNoTimeSolution, I::Vararg{Int, N}) where {N} = A.u[I] +Base.getindex(A::AbstractNoTimeSolution, I::Vararg{Int, N}) where {N} = A.u[I...] Base.getindex(A::AbstractNoTimeSolution, I::AbstractArray{Int}) = A.u[I] Base.getindex(A::AbstractNoTimeSolution, I::CartesianIndex) = A.u[I] Base.getindex(A::AbstractNoTimeSolution, I::Colon) = A.u[I]