Using this line of code with Agents.jl
:
ids_in_position( (2,2) , schelling )
I get this error:
MethodError: no method matching ids_in_position(::Tuple{Int64, Int64}, ::UnremovableABM{GridSpaceSingle{2, false}, SchellingAgent, Agents.Schedulers.Randomly, Dict{Symbol, Int64}, Xoshiro})
Closest candidates are:
ids_in_position(::Union{Int64, Tuple{Int64, Int64, Float64}, Tuple{Vararg{Int64, N}}, Tuple{Vararg{var"#s5", M}} where var"#s5"<:AbstractFloat} where {N, M}, ::AgentBasedModel{<:GridSpace}) at ~/.julia/packages/Agents/PhazO/src/spaces/grid_multi.jl:243
ids_in_position(::Union{Int64, Tuple{Int64, Int64, Float64}, Tuple{Vararg{Int64, N}}, Tuple{Vararg{var"#s5", M}} where var"#s5"<:AbstractFloat} where {N, M}, ::GridSpace) at ~/.julia/packages/Agents/PhazO/src/spaces/grid_multi.jl:244
ids_in_position(::A, ::Any) where A<:AbstractAgent at ~/.julia/packages/Agents/PhazO/src/spaces/discrete.jl:56
Stacktrace:
[1] top-level scope
@ In[145]:1
Am I doing something wrong? I want to find out which agents reside on the position of a grid?