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
F = FlowFields(u = u , v = v , period = T )
ERROR: UndefVarError: u not defined in Main
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ REPL[15]:1
The text was updated successfully, but these errors were encountered:
Unfortunately, I am going to have to get back to this one when back from this week's conference though, since I left the u,v file and script back home on a different computer
Has been resolved by the latest versions of Drifters (v0.6.2) and OceanRobots (v0.2.8).
The code below is now executed as part of the documentation of Drifters.jl which has successfully build on GitHub.
The Drifters.Gulf_of_Mexico_setup function downloads a file with flow fields described in the paper.
The docs of Drifters.jl also contain the plotting code.
using JLD2, CairoMakie, Drifters, OceanRobots;
P=Drifters.Gulf_of_Mexico_setup();
F=FlowFields(u=P.u,v=P.v,period=P.T);
I=Individuals(F,P.x0,P.y0);
[solve!(I,P.T .+P.dT*(n-1)) for n in 1:P.nt]
The same code should work on any local computer with a connection (since it works on GitHub).
Can you please confirm this works for you and/or close the issue @jonathanlilly ?
I get an error in running Code 2.
F = FlowFields(u = u , v = v , period = T )
ERROR: UndefVarError:
u
not defined inMain
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] top-level scope
@ REPL[15]:1
The text was updated successfully, but these errors were encountered: