Mesa 2.3.0__tar.gz → 2.3.0rc1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of Mesa might be problematic. Click here for more details.
- {mesa-2.3.0 → mesa-2.3.0rc1}/HISTORY.md +7 -10
- {mesa-2.3.0 → mesa-2.3.0rc1}/PKG-INFO +1 -1
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/__init__.py +1 -1
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/space.py +0 -1
- {mesa-2.3.0 → mesa-2.3.0rc1}/.codespellignore +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.coveragerc +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.github/ISSUE_TEMPLATE/asking-help.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.github/ISSUE_TEMPLATE/bug-report.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.github/ISSUE_TEMPLATE/feature-request.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.github/dependabot.yml +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.github/release.yml +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.github/workflows/benchmarks.yml +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.github/workflows/build_lint.yml +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.github/workflows/release.yml +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.gitignore +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.pre-commit-config.yaml +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/.readthedocs.yml +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/CITATION.bib +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/CODE_OF_CONDUCT.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/CONTRIBUTING.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/Dockerfile +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/LICENSE +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/README.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/benchmarks/Flocking/__init__.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/benchmarks/Flocking/flocking.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/benchmarks/Schelling/__init__.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/benchmarks/Schelling/schelling.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/benchmarks/WolfSheep/__init__.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/benchmarks/WolfSheep/wolf_sheep.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/benchmarks/compare_timings.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/benchmarks/configurations.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/benchmarks/global_benchmark.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/codecov.yaml +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docker-compose.yml +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/Makefile +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/README.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/apis/api_main.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/apis/batchrunner.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/apis/datacollection.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/apis/init.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/apis/space.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/apis/time.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/apis/visualization.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/best-practices.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/conf.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/howto.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/Mesa_Screenshot.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/mesa_logo.ico +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/mesa_logo.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/br_ginis.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/dc_endwealth.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/dc_gini.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/dc_oneagent.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/first_hist.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/multirun_hist.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/numpy_grid.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/viz_chart.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/viz_empty.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/viz_greycircles.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/viz_histogram.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/images/tutorial/viz_redcircles.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/index.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/make.bat +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/mesa.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/mesa.visualization.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/mesa.visualization.modules.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/modular-visualization.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/overview.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/packages.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/tutorials/MoneyModel.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/tutorials/adv_tutorial_legacy.ipynb +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/tutorials/files/viz_chart.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/tutorials/files/viz_empty.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/tutorials/files/viz_greycircles.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/tutorials/files/viz_histogram.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/tutorials/files/viz_redcircles.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/tutorials/files/viz_slider.png +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/tutorials/intro_tutorial.ipynb +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/docs/tutorials/visualization_tutorial.ipynb +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/agent.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/batchrunner.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/cookiecutter-mesa/cookiecutter.json +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/cookiecutter-mesa/hooks/post_gen_project.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/README.md +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/run.pytemplate +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/setup.pytemplate +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/{{cookiecutter.snake}}/__init__.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/{{cookiecutter.snake}}/model.pytemplate +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/cookiecutter-mesa/{{cookiecutter.snake}}/{{cookiecutter.snake}}/server.pytemplate +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/datacollection.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/UserParam.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/__init__.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/cell_space/__init__.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/cell_space/cell.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/cell_space/cell_agent.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/cell_space/cell_collection.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/cell_space/discrete_space.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/cell_space/grid.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/cell_space/network.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/components/altair.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/components/matplotlib.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/devs/__init__.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/devs/eventlist.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/devs/examples/epstein_civil_violence.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/devs/examples/wolf_sheep.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/devs/simulator.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/experimental/jupyter_viz.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/flat/__init__.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/flat/visualization.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/main.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/model.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/time.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/visualization/ModularVisualization.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/visualization/TextVisualization.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/visualization/UserParam.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/visualization/__init__.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mesa/visualization/modules.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/mypy.ini +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/pyproject.toml +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/__init__.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/read_requirements.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_agent.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_batch_run.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_cell_space.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_datacollector.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_devs.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_end_to_end_viz.sh +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_examples.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_grid.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_import_namespace.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_jupyter_viz.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_lifespan.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_main.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_model.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_scaffold.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_space.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_time.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_tornado.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_usersettableparam.py +0 -0
- {mesa-2.3.0 → mesa-2.3.0rc1}/tests/test_visualization.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Release History
|
|
3
3
|
---
|
|
4
|
-
# 2.3.0 (2024-04-
|
|
4
|
+
# 2.3.0-rc1 (2024-04-18)
|
|
5
5
|
## Highlights
|
|
6
|
-
|
|
6
|
+
The 2.3.0-rc1 release is our first release candidate pre-release, meant to test all the new features and enhancement for the upcoming 2.3.0 release.
|
|
7
7
|
|
|
8
8
|
There are two main new features:
|
|
9
9
|
- The experimental cell-centric discrete spaces, as added in #1994. It allows having cells with not only properties but also active behaviors: the `CellAgent`. Its inspired by NetLogo's [patches](https://ccl.northwestern.edu/netlogo/bind/primitive/patches.html) but extend and generalize this concept further.
|
|
@@ -13,11 +13,11 @@ There are a lot of other features: The Jupyter visualisation now supports easier
|
|
|
13
13
|
|
|
14
14
|
Finally, 2.3.0 stabilizes the `AgentSet` (including `model.agents`), making it the first experimental Mesa feature that is taken out of it's experimental phase.
|
|
15
15
|
|
|
16
|
-
Install this release with:
|
|
16
|
+
Install this pre-release with:
|
|
17
17
|
```
|
|
18
|
-
pip install --
|
|
18
|
+
pip install --pre mesa
|
|
19
19
|
```
|
|
20
|
-
|
|
20
|
+
We would love feedback before we release 2.3.0 stable in ~1 week.
|
|
21
21
|
|
|
22
22
|
## What's Changed
|
|
23
23
|
### 🧪 Experimental features
|
|
@@ -34,7 +34,7 @@ The Mesa 2.3.x-series supports Python 3.9 to 3.12. The next major release will r
|
|
|
34
34
|
* feat: Let mesa runserver detect server.py as fallback by @rht in https://github.com/projectmesa/mesa/pull/2015
|
|
35
35
|
* JupyterViz: {Convert make_plot & prepare ColorCard} to become Solara component by @rht in https://github.com/projectmesa/mesa/pull/2020
|
|
36
36
|
* new feature: AgentSet.get can retrieve one or more then one attribute by @quaquel in https://github.com/projectmesa/mesa/pull/2044
|
|
37
|
-
* Update CODE_OF_CONDUCT.md to version 2+ of contrib
|
|
37
|
+
* Update CODE_OF_CONDUCT.md to version 2+ of contrib convenant by @jackiekazil in https://github.com/projectmesa/mesa/pull/2052
|
|
38
38
|
* Improve flocking benchmark by @coderbeta1 in https://github.com/projectmesa/mesa/pull/2054
|
|
39
39
|
* Remove JupyterViz Altair marker overlap for huge grid size by @rht in https://github.com/projectmesa/mesa/pull/2062
|
|
40
40
|
* Add tooltip option to Altair chart by @FoFFolo in https://github.com/projectmesa/mesa/pull/2082
|
|
@@ -87,10 +87,7 @@ The Mesa 2.3.x-series supports Python 3.9 to 3.12. The next major release will r
|
|
|
87
87
|
* @FoFFolo made their first contribution in https://github.com/projectmesa/mesa/pull/2082
|
|
88
88
|
* @puer-robustus made their first contribution in https://github.com/projectmesa/mesa/pull/2083
|
|
89
89
|
|
|
90
|
-
**Full Changelog**: https://github.com/projectmesa/mesa/compare/v2.2.4...2.3.0
|
|
91
|
-
|
|
92
|
-
# 2.3.0-rc1 (2024-04-18)
|
|
93
|
-
Mesa 2.3.0-rc1 is pre-release in preparation for 2.3.0 stable. It had the same release notes as 2.3.0.
|
|
90
|
+
**Full Changelog**: https://github.com/projectmesa/mesa/compare/v2.2.4...2.3.0-rc1
|
|
94
91
|
|
|
95
92
|
# 2.2.4 (2024-01-26)
|
|
96
93
|
## Highlights
|
|
@@ -26,7 +26,7 @@ __all__ = [
|
|
|
26
26
|
]
|
|
27
27
|
|
|
28
28
|
__title__ = "mesa"
|
|
29
|
-
__version__ = "2.3.0"
|
|
29
|
+
__version__ = "2.3.0-rc1"
|
|
30
30
|
__license__ = "Apache 2.0"
|
|
31
31
|
_this_year = datetime.datetime.now(tz=datetime.timezone.utc).date().year
|
|
32
32
|
__copyright__ = f"Copyright {_this_year} Project Mesa Team"
|
|
@@ -461,7 +461,6 @@ class _Grid:
|
|
|
461
461
|
# Find the closest position without sorting all positions
|
|
462
462
|
closest_pos = None
|
|
463
463
|
min_distance = float("inf")
|
|
464
|
-
agent.random.shuffle(pos)
|
|
465
464
|
for p in pos:
|
|
466
465
|
distance = self._distance_squared(p, current_pos)
|
|
467
466
|
if distance < min_distance:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|