Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

interactive_evolution_timeseries is not working #69

Closed
Masacroso opened this issue Aug 5, 2021 · 1 comment
Closed

interactive_evolution_timeseries is not working #69

Masacroso opened this issue Aug 5, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Masacroso
Copy link

Masacroso commented Aug 5, 2021

I have this code

using DifferentialEquations, DynamicalSystems, InteractiveDynamics, GLMakie

ds = Systems.lorenz()
	
u1 = [10,20,40.0]
u2 = [10,20,40.0 + 1e-3]
u3 = [20,10,40.0]
u0s = [u1, u2, u3]
	
idxs = (1, 2, 3)
diffeq = (alg = Tsit5(), dtmax = 0.01)

figure, obs = interactive_evolution_timeseries(
    ds, u0s; idxs, tail=1000, diffeq
)

Yesterday it worked fine, however today, from the last update to 0.117, it doesn't work. The error thrown says:

ERROR: LoadError: UndefVarError: ax not defined
Stacktrace:
 [1] init_main_trajectory_plot(ds::ContinuousDynamicalSystem{false, SVector{3, Float64}, 3, typeof(DynamicalSystemsBase.Systems.loop), Vector{Float64}, typeof(DynamicalSystemsBase.Systems.loop_jac), SMatrix{3, 3, Float64, 9}, false}, fig::Figure, idxs::SVector{3, Int64}, lims::Tuple{Tuple{Float64, Float64}, Tuple{Float64, Float64}, Tuple{Float64, Float64}}, pinteg::OrdinaryDiffEq.ODEIntegrator{Tsit5, true, Vector{SVector{3, Float64}}, Nothing, Float64, Vector{Float64}, Float64, Float64, Float64, Float64, Vector{Vector{SVector{3, Float64}}}, ODESolution{SVector{3, Float64}, 2, Vector{Vector{SVector{3, Float64}}}, Nothing, Nothing, Vector{Float64}, Vector{Vector{Vector{SVector{3, Float64}}}}, ODEProblem{Vector{SVector{3, Float64}}, Tuple{Float64, Float64}, true, Vector{Float64}, ODEFunction{true, DynamicalSystemsBase.var"#29#30"{ContinuousDynamicalSystem{false, SVector{3, Float64}, 3, typeof(DynamicalSystemsBase.Systems.loop), Vector{Float64}, typeof(DynamicalSystemsBase.Systems.loop_jac), SMatrix{3, 3, Float64, 9}, false}, Int64}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, Tsit5, OrdinaryDiffEq.InterpolationData{ODEFunction{true, DynamicalSystemsBase.var"#29#30"{ContinuousDynamicalSystem{false, SVector{3, Float64}, 3, typeof(DynamicalSystemsBase.Systems.loop), Vector{Float64}, typeof(DynamicalSystemsBase.Systems.loop_jac), SMatrix{3, 3, Float64, 9}, false}, Int64}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Vector{Vector{SVector{3, Float64}}}, Vector{Float64}, Vector{Vector{Vector{SVector{3, Float64}}}}, OrdinaryDiffEq.Tsit5Cache{Vector{SVector{3, Float64}}, Vector{SVector{3, Float64}}, Vector{SVector{3, Float64}}, OrdinaryDiffEq.Tsit5ConstantCache{Float64, Float64}}}, DiffEqBase.DEStats}, ODEFunction{true, DynamicalSystemsBase.var"#29#30"{ContinuousDynamicalSystem{false, SVector{3, Float64}, 3, typeof(DynamicalSystemsBase.Systems.loop), Vector{Float64}, typeof(DynamicalSystemsBase.Systems.loop_jac), SMatrix{3, 3, Float64, 9}, false}, Int64}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, OrdinaryDiffEq.Tsit5Cache{Vector{SVector{3, Float64}}, Vector{SVector{3, Float64}}, Vector{SVector{3, Float64}}, OrdinaryDiffEq.Tsit5ConstantCache{Float64, Float64}}, OrdinaryDiffEq.DEOptions{Float64, Float64, Float64, Float64, PIController{Rational{Int64}}, typeof(DynamicalSystemsBase._parallelnorm), typeof(LinearAlgebra.opnorm), Nothing, CallbackSet{Tuple{}, Tuple{}}, typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN), typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK), DataStructures.BinaryMinHeap{Float64}, DataStructures.BinaryMinHeap{Float64}, Nothing, Nothing, Int64, Tuple{}, Tuple{}, Tuple{}}, Vector{SVector{3, Float64}}, Float64, Nothing, OrdinaryDiffEq.DefaultInit}, colors::Vector{ColorTypes.RGBA{Float32}}, obs::Vector{Observable}, plotkwargs::NamedTuple{(), Tuple{}}, finalpoints::Observable{Vector{Point{3, Float32}}}, m::Float64)
   @ InteractiveDynamics ~/.julia/packages/InteractiveDynamics/SoHDO/src/chaos/trajanim.jl:130
 [2] interactive_evolution_timeseries(ds::ContinuousDynamicalSystem{false, SVector{3, Float64}, 3, typeof(DynamicalSystemsBase.Systems.loop), Vector{Float64}, typeof(DynamicalSystemsBase.Systems.loop_jac), SMatrix{3, 3, Float64, 9}, false}, u0s::Vector{Vector{Float64}}, ps::Nothing; transform::typeof(identity), idxs::Tuple{Int64, Int64, Int64}, colors::Vector{ColorTypes.RGBA{Float32}}, tail::Int64, diffeq::NamedTuple{(:alg, :dtmax), Tuple{Tsit5, Float64}}, plotkwargs::NamedTuple{(), Tuple{}}, m::Float64, lims::Tuple{Tuple{Float64, Float64}, Tuple{Float64, Float64}, Tuple{Float64, Float64}}, total_span::Int64, linekwargs::NamedTuple{(:linewidth,), Tuple{Int64}}, pnames::Nothing)
   @ InteractiveDynamics ~/.julia/packages/InteractiveDynamics/SoHDO/src/chaos/trajanim.jl:209
 [3] top-level scope
   @ /media/data/documents/code/Julia/testing_glmakie.jl:15
in expression starting at /media/data/documents/code/Julia/testing_glmakie.jl:15

The version of the involved packages is

DynamicalSystems v2.0.1
GLMakie v0.4.4
InteractiveDynamics v0.17.0

@Datseris
Copy link
Member

Datseris commented Aug 5, 2021

Sorry about that, totally my fault :D I'll fix it today.

(Damn I really wish I could test this package at CI)

@Datseris Datseris added the bug Something isn't working label Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants