Skip to content

docs: Add Mesa migration guide for AgentSet sequence behavior#3218

Merged
EwoutH merged 4 commits intomesa:mainfrom
codebyNJ:docs/add-mesa-3.5.0-migration-guide
Jan 28, 2026
Merged

docs: Add Mesa migration guide for AgentSet sequence behavior#3218
EwoutH merged 4 commits intomesa:mainfrom
codebyNJ:docs/add-mesa-3.5.0-migration-guide

Conversation

@codebyNJ
Copy link
Copy Markdown
Contributor

This PR is regarding the migration guide for AgentSet addition.

Copy link
Copy Markdown
Member

@EwoutH EwoutH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you add a line like this to the warning messages?

"See https://mesa.readthedocs.io/latest/migration_guide.html#AgentSet-sequence-behavior"


## Mesa 3.5.0

### AgentSet Sequence Behavior Deprecation
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### AgentSet Sequence Behavior Deprecation
### AgentSet sequence behavior

@EwoutH EwoutH merged commit 5d2aa81 into mesa:main Jan 28, 2026
15 checks passed
@EwoutH
Copy link
Copy Markdown
Member

EwoutH commented Jan 28, 2026

Thanks!

Jayantparashar10 added a commit to Jayantparashar10/mesa that referenced this pull request Feb 4, 2026
Replace deprecated AgentSet[index] with AgentSet.to_list()[index]
in extract_class function per Mesa 4.0 migration guidelines.

Fixes mesa#3240
Related to mesa#3208 and mesa#3218
quaquel pushed a commit that referenced this pull request Feb 4, 2026
* fix: update meta_agents extract_class to use to_list()

Replace deprecated AgentSet[index] with AgentSet.to_list()[index]
in extract_class function per Mesa 4.0 migration guidelines.

Fixes #3240
Related to #3208 and #3218

* Use iterator protocol instead of to_list()

Per maintainer feedback, use next(iter()) which is more efficient
than converting to list first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Release notes label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants