Skip to content

Replace sequence with to_list for AgentSet #3185

@quaquel

Description

@quaquel

AgentSet currently subclasses collections.abc.Sequence. This is very slow, and typically not needed. For Mesa 4, I suggest we remove the sequence behavior from AgentSet and replace it with a to_list helper method. This reduces the potential for users to use the very slow sequence behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingRelease notes label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions