Remove experimental cell_space module and update references#2969
Merged
Remove experimental cell_space module and update references#2969
Conversation
Deleted the mesa.experimental.cell_space module and its __init__.py, as cell space functionality has been moved to mesa.discrete_space. Updated documentation and type hints in related files to reference mesa.discrete_space instead of the removed experimental module.
This comment was marked as off-topic.
This comment was marked as off-topic.
quaquel
approved these changes
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove deprecated
mesa.experimental.cell_spacenamespace and update references to point to the stablemesa.discrete_spacemodule.Motive
The cell space module was stabilized and moved from
mesa.experimental.cell_spacetomesa.discrete_spacein Mesa 3.2.0 (February 2025, PR #2610). Since then, three stable releases (3.2.0, 3.3.0, and 3.3.1) have been published with the cell space as a stable feature.The experimental namespace has served its deprecation purpose by providing a migration path for users. With sufficient time having passed and multiple stable releases available, it's appropriate to remove the deprecated namespace to reduce maintenance burden, clean up the codebase, encourage users to adopt the stable API and prevent confusion about which namespace to use.
Implementation
Removed the
mesa/experimental/cell_spacedirectory. All functionality continues to exist in its stable location (mesa.discrete_space), we're simply removing the deprecated import path.Migration Guide
Users still importing from
mesa.experimental.cell_spaceshould update their imports:This follows Mesa's experimental feature policy where deprecated experimental features can be fully removed at any point, and in this case after sufficient deprecation time and stable releases. The cell space has been stable since February and for three releases (3.2.0, 3.3.0, 3.3.1), providing ample migration time.