Skip to content

cell capacity bugfix#3524

Merged
quaquel merged 2 commits intomesa:3.5.x-maintenancefrom
quaquel:cell_bugfix
Mar 14, 2026
Merged

cell capacity bugfix#3524
quaquel merged 2 commits intomesa:3.5.x-maintenancefrom
quaquel:cell_bugfix

Conversation

@quaquel
Copy link
Copy Markdown
Member

@quaquel quaquel commented Mar 12, 2026

Summary

This is a small update to Cell and Grid to ensure capacity is set properly. In Cell, we explicitly force keyword arguments. In Grid, we pass capacity as a keyword argument instead of as an argument. All other discrete spaces already handle this correctly.

Bug / Issue

Closes #3505.

Implementation

  • Cell now enforces explicit use of keyword arguments
  • Grid passes capacity as a keyword argument.

Testing

An additional test is added to check that capacity is properly set on a cell in a (subclass) of Grid.

@quaquel quaquel added the bug Release notes label label Mar 12, 2026
@quaquel quaquel changed the title bugfix cell capacity bugfix Mar 12, 2026
@quaquel
Copy link
Copy Markdown
Member Author

quaquel commented Mar 14, 2026

examples are failing since this merges into 3.5 and various examples have already been updated to 4.0
pre is failing because of the solara issue that was merged (#3370).

@quaquel quaquel merged commit d3c51e5 into mesa:3.5.x-maintenance Mar 14, 2026
12 of 14 checks passed
@quaquel quaquel deleted the cell_bugfix branch March 14, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Release notes label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants