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

poincaresos for datasets no longer works with vector-typed hyperplane #179

Closed
rusandris opened this issue Aug 7, 2023 · 1 comment
Closed

Comments

@rusandris
Copy link
Contributor

It seems there's a bug somewhere with the namespaces/dependencies.
MWE:

ds = PredefinedDynamicalSystems.lorenz()
traj, = trajectory(ds,50000;Ttr=1000)

poincaresos(traj,(1,15.0)) #works
poincaresos(traj,[1,0,0,15.0]) #doesn't work

Last function call gives the following error:
ERROR: UndefVarError: LinearAlgebra not defined
encountered when calling
[1] interpolate_crossing(A::SVector{3, Float64}, B::SVector{3, Float64}, pc::PlaneCrossing{Vector{Float64}, 3, Float64})

The weird thing is

poincaresos(ds,(1,15.0))
poincaresos(ds,[1,0,0,15.0])

both work.

Julia Version 1.9.2 and DynamicalSystemsBase v3.2.1

@Datseris
Copy link
Member

Datseris commented Aug 7, 2023

easy fix, add using LinearAlgebra before the function interpolate_crossing in the source code!

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