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
{{ message }}
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.
When using interactive_evolution (and possibly other function that support idxs; I haven't tested them), the idxs parameter doesn't seem to behave correctly. When using DynamicalSystem's double pendulum system (param order is [θ₁,ω₁,θ₂,ω₂]) and attempting to graph both theta values, this is what I get:
julia>using GLMakie, DynamicalSystems, InteractiveDynamics
julia> ds = Systems.double_pendulum()
4-dimensional continuous dynamical system
state: [1.5708, 0.0, 0.0, 0.5]
rule f: doublependulum_rule
in-place? false
jacobian: ForwardDiff
parameters: [10.0, 1.0, 1.0, 1.0, 1.0]
julia>interactive_evolution(ds; idxs = [1, 3]);
juila># Click "Step" ("run" does nothing):
Error in callback:
BoundsError: attempt to access Tuple{Float64, Float64} at index [3]
If I attempt to use a tuple for idxs instead, as sometimes suggested by the documentation (I assume either an Array or a Tuple is supposed to be fine), I get this type error:
When using
interactive_evolution
(and possibly other function that supportidxs
; I haven't tested them), theidxs
parameter doesn't seem to behave correctly. When using DynamicalSystem's double pendulum system (param order is[θ₁,ω₁,θ₂,ω₂]
) and attempting to graph both theta values, this is what I get:Stacktrace
If I attempt to use a tuple for idxs instead, as sometimes suggested by the documentation (I assume either an Array or a Tuple is supposed to be fine), I get this type error:
Versions:
The text was updated successfully, but these errors were encountered: