Closed tatakof closed 2 years ago
After updating/upgrading packages to what was used in the document by running:
pkg> add Agents@5.4.3 CairoMakie@0.8.12 InteractiveDynamics@0.21.10
I got a new error:
ERROR: UndefVarError: id_in_position not defined
Stacktrace:
[1] update_surface_temperature!(pos::Tuple{Int64, Int64}, model::AgentBasedModel{GridSpaceSingle{2, true}, Daisy, typeof(Agents.Schedulers.fastest), Dict{Symbol, Any}, MersenneTwister})
@ Main ~/.julia/packages/InteractiveDynamics/q73Ef/src/agents/daisyworld_def.jl:17
[2] daisyworld(; griddims::Tuple{Int64, Int64}, max_age::Int64, init_white::Float64, init_black::Float64, albedo_white::Float64, albedo_black::Float64, surface_albedo::Float64, solar_change::Float64, solar_luminosity::Float64, scenario::Symbol, seed::Int64)
@ Main ~/.julia/packages/InteractiveDynamics/q73Ef/src/agents/daisyworld_def.jl:121
[3] top-level scope
@ ~/Agents.jl/examples/interactivity-test.jl:27
Did your packages actually get updated to these versions? because at these versions the code works for me, otherwise the online docs wouldn't build.
now I realize they did not. Now after fixing the packages, the code works. Thanks for the quick response George!
Hello,
I'm exploring the plotting in ABMs described here: https://juliadynamics.github.io/Agents.jl/stable/agents_visualizations/ and the following code (right at the beginning) doesn't work.
My dependencies:
The error is:
Thanks!