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 periodicity.jl: SVector not defined #45

Closed
finmod opened this issue Oct 23, 2017 · 1 comment
Closed

In periodicity.jl: SVector not defined #45

finmod opened this issue Oct 23, 2017 · 1 comment

Comments

@finmod
Copy link

finmod commented Oct 23, 2017

In periodicity.jl, running:

using DynamicalSystems, PyPlot

ds = Systems.standardmap()
xs = linspace(0, 2π, 21); ys = copy(xs)
ics = [SVector{2}(x,y) for x in xs for y in ys]

gives the error:

UndefVarError: SVector not defined

Stacktrace:
[1] next at .\iterators.jl:708 [inlined]
[2] grow_to!(::Array{Union{},1}, ::Base.Iterators.Flatten{Base.Generator{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},##1#3}}, ::Tuple{Int64,Base.Generator{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},##2#4{Float64}},Int64}) at .\array.jl:498
[3] grow_to!(::Array{Any,1}, ::Base.Iterators.Flatten{Base.Generator{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},##1#3}}) at .\array.jl:491
[4] collect(::Base.Iterators.Flatten{Base.Generator{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},##1#3}}) at .\array.jl:397
[5] include_string(::String, ::String) at .\loading.jl:515

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

Fixed on master, thanks! (This was happening because you were not using StaticArrays).

The docs will take a while to be updated though, there seems to be some issue between Travis and mkdocs as far as versioning goes.

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