Skip to content

Commit e3153a3

Browse files
committed
maintenance: updates for 2.2.0 release
update `__init__.py` update `HISTORY.md` fix ruff failure in `agent.py`
1 parent d2eb502 commit e3153a3

File tree

3 files changed

+40
-4
lines changed

3 files changed

+40
-4
lines changed

HISTORY.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,44 @@
22
title: Release History
33
---
44

5+
# 2.2.0 (2024-01-08)
6+
7+
# Highlights
8+
This release incorporates several majors changes to Mesa. Notably, this provides two experimental features. (1) It reimagines Mesa's agent handling to have agents in the model class and store them in sets. The intent is to make Mesa more efficient and give users more control over agent scheduling to allow for innumerable options. (2) It adds property layer and property grid so users can layer on multiple grids making Mesa and Geo-Mesa more similar.
9+
10+
# What's Changed
11+
12+
## 🧪 Experimental features
13+
* Introduce AgentSet class by @EwoutH in https://github.com/projectmesa/mesa/pull/1916
14+
* Reimplement schedulers to use AgentSet by @quaquel in https://github.com/projectmesa/mesa/pull/1926
15+
* Work around for initializing model._agent by @quaquel in https://github.com/projectmesa/mesa/pull/1928
16+
* space: Implement PropertyLayer and _PropertyGrid by @EwoutH in https://github.com/projectmesa/mesa/pull/1898
17+
18+
## 🛠 Enhancements made
19+
* Native support for multiple agent types by @EwoutH in https://github.com/projectmesa/mesa/pull/1894
20+
* Document empties property by @EwoutH in https://github.com/projectmesa/mesa/pull/1888
21+
* Add DiscreteEventScheduler by @EwoutH in https://github.com/projectmesa/mesa/pull/1890
22+
* space: Let move_agent choose from multiple positions by @EwoutH in https://github.com/projectmesa/mesa/pull/1920
23+
24+
## 🐛 Bugs fixed
25+
* Honor disabled space drawer option when rendering in the browser by @rlskoeser in https://github.com/projectmesa/mesa/pull/1907
26+
27+
## 📜 Documentation improvements
28+
* docs: Fix README.md inline code formatting by @rht in https://github.com/projectmesa/mesa/pull/1887
29+
* Add experimental warning to DiscreteEventScheduler by @EwoutH in https://github.com/projectmesa/mesa/pull/1924
30+
31+
## 🔧 Maintenance
32+
* ci: Speed up pip install by caching deps install output by @rht in https://github.com/projectmesa/mesa/pull/1885
33+
* [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in https://github.com/projectmesa/mesa/pull/1899
34+
* build(deps): bump actions/setup-python from 4 to 5 by @dependabot in https://github.com/projectmesa/mesa/pull/1904
35+
* Create release.yml file for automatic release notes generation by @EwoutH in https://github.com/projectmesa/mesa/pull/1925
36+
* Drop support for Python 3.8 by @rht in https://github.com/projectmesa/mesa/pull/1756
37+
38+
## New Contributors
39+
* @quaquel made their first contribution in https://github.com/projectmesa/mesa/pull/1928
40+
41+
**Full Changelog**: https://github.com/projectmesa/mesa/compare/v2.1.5...v2.2.0
42+
543
# 2.1.5 (2023-11-26)
644

745
This release has some critical fixes to JupyterViz/Solara frontend to prevent

mesa/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
]
2626

2727
__title__ = "mesa"
28-
__version__ = "2.1.5"
28+
__version__ = "2.2.0"
2929
__license__ = "Apache 2.0"
3030
_this_year = datetime.datetime.now(tz=datetime.timezone.utc).date().year
3131
__copyright__ = f"Copyright {_this_year} Project Mesa Team"

mesa/agent.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,16 @@ def __init__(self, unique_id: int, model: Model) -> None:
5656
self.model.agentset_experimental_warning_given = False
5757

5858
warnings.warn(
59-
"The Mesa Model class wasn’t initialized. In the future, you need to explicitly initialize the Model by calling super().__init__() on initialization.",
59+
"The Mesa Model class was not initialized. In the future, you need to explicitly initialize the Model by calling super().__init__() on initialization.",
6060
FutureWarning,
6161
stacklevel=2,
6262
)
6363

64-
6564
def remove(self) -> None:
6665
"""Remove and delete the agent from the model."""
6766
with contextlib.suppress(KeyError):
6867
self.model._agents[type(self)].pop(self)
6968

70-
7169
def step(self) -> None:
7270
"""A single step of the agent."""
7371

0 commit comments

Comments
 (0)