Skip to content

abmexploration() throws DimensionMismatch exception when mouse hovers on a single agentΒ #1125

@NiallPalfreyman

Description

@NiallPalfreyman

Describe the bug
When I run abmexploration() in version 6.2.1 and then interact with the agent window, it throws a DimensionMismatch exception from an internal call of euclidean_distance() and then continues to do so as long as the mouse moves anywere on the application window.

Minimal Working Example

module Ecosystem
using Agents, GLMakie

@agent struct Turtle(ContinuousAgent{2,Float64})
end

function agent_step!( me::Turtle, model)
    return
end

abm = StandardABM( Turtle, ContinuousSpace((60,60)); agent_step!)
add_agent!( abm; vel=[1,1])
playground, _ = abmexploration( abm)
display(playground)
end

Agents.jl version
6.2.1
Please provide the version you use (you can do Pkg.status("Agents").

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions