You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This threw for me when trying to symbolically index a solution using sol[:x, end] which used to work. sol[:x][end] does work, but I wanted to flag this in case.
Expected behavior
Should return the last value instead of erroring.
Minimal Reproducible Example 👇
using ModelingToolkit: t_nounits as t, D_nounits as D
using OrdinaryDiffEqTsit5
@variablesx(t)
@named sys =System([D(x) ~1], t)
prob =ODEProblem(complete(sys), [x =>1], (0, 1))
sol =solve(prob, Tsit5())
sol[x, end]
Activity
JoshuaLampert commentedon Jan 2, 2026
Thanks for the report. Should be fixed by #516.