Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In system_definition: ds not defined #44

Closed
finmod opened this issue Oct 23, 2017 · 3 comments
Closed

In system_definition: ds not defined #44

finmod opened this issue Oct 23, 2017 · 3 comments

Comments

@finmod
Copy link

finmod commented Oct 23, 2017

In system_definiion.jl, running:

@inline @inbounds function eom_roessler!(du, u)
a = 0.2; b = 0.2; c = 5.7
du[1] = -u[2]-u[3]
du[2] = u[1] + au[2]
du[3] = b + u[3]
(u[1] - c)
end
@inline @inbounds function jacob_roessler(u)
i = one(eltype(u))
o = zero(eltype(u))
@smatrix [o -i -i;
i a o;
u[3] o u[1] - c]
end

ros = ContinuousDS(rand(3), eom_roessler!, jacob_roessler)

produces this error:

UndefVarError: ds not defined

Stacktrace:
[1] show(::IOContext{Base.AbstractIOBuffer{Array{UInt8,1}}}, ::DynamicalSystems.ContinuousDS{Array{Float64,1},#eom_roessler!,#jacob_roessler}) at C:\Users\Denis.julia\v0.6\DynamicalSystems\src\systems\continuous.jl:139
[2] limitstringmime(::MIME{Symbol("text/plain")}, ::DynamicalSystems.ContinuousDS{Array{Float64,1},#eom_roessler!,#jacob_roessler}) at C:\Users\Denis.julia\v0.6\IJulia\src\inline.jl:24
[3] display_dict(::DynamicalSystems.ContinuousDS{Array{Float64,1},#eom_roessler!,#jacob_roessler}) at C:\Users\Denis.julia\v0.6\IJulia\src\execute_request.jl:27
[4] execute_request(::ZMQ.Socket, ::IJulia.Msg) at C:\Users\Denis.julia\v0.6\IJulia\src\execute_request.jl:182
[5] eventloop(::ZMQ.Socket) at C:\Users\Denis.julia\v0.6\IJulia\src\eventloop.jl:8
[6] (::IJulia.##14#17)() at .\task.jl:335

Datseris added a commit that referenced this issue Oct 23, 2017
@Datseris
Copy link
Member

fixed on master, thanks!

@finmod
Copy link
Author

finmod commented Oct 23, 2017

Almost there. I still get this error for the same input as above:

UndefVarError: s not defined

Stacktrace:
[1] show(::IOContext{Base.AbstractIOBuffer{Array{UInt8,1}}}, ::DynamicalSystems.ContinuousDS{Array{Float64,1},#eom_roessler!,#jacob_roessler}) at C:\Users\Denis.julia\v0.6\DynamicalSystems\src\systems\continuous.jl:140
[2] limitstringmime(::MIME{Symbol("text/plain")}, ::DynamicalSystems.ContinuousDS{Array{Float64,1},#eom_roessler!,#jacob_roessler}) at C:\Users\Denis.julia\v0.6\IJulia\src\inline.jl:24
[3] display_dict(::DynamicalSystems.ContinuousDS{Array{Float64,1},#eom_roessler!,#jacob_roessler}) at C:\Users\Denis.julia\v0.6\IJulia\src\execute_request.jl:27
[4] execute_request(::ZMQ.Socket, ::IJulia.Msg) at C:\Users\Denis.julia\v0.6\IJulia\src\execute_request.jl:182
[5] eventloop(::ZMQ.Socket) at C:\Users\Denis.julia\v0.6\IJulia\src\eventloop.jl:8
[6] (::IJulia.##14#17)() at .\task.jl:335

Datseris added a commit that referenced this issue Oct 23, 2017
@Datseris
Copy link
Member

Damn coding is hard :P I now know why this happened: I only use juno!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants