You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,40 @@ discuss via [Matrix] OR via [an issue].
36
36
- Describe the change w/ ticket number(s) that the code fixes.
37
37
- Format your commit message as per [Tim Pope's guideline].
38
38
39
+
## I have no idea where to start
40
+
That's fine! Here's a rough outline where you could start, depending on your experience:
41
+
42
+
### I'm a modeller (but not an experienced developer)
43
+
You already know how to build Mesa models (if not skip below), and probably have found things Mesa can't do (elegantly). You want to improve that. Awesome!
44
+
45
+
First step is to install some proper tools, if you haven't already.
46
+
- A good IDE helps for code development, testing and formatting. [PyCharm](https://www.jetbrains.com/pycharm/) or [VSCode](https://code.visualstudio.com/) for example.
47
+
- Dive into Git and GitHub. Watch some videos, this takes some time to click. [GitHub Desktop](https://desktop.github.com/) is great.
48
+
-[`https://github.dev/projectmesa/mesa`](https://github.dev/projectmesa/mesa) is great for small changes (to docs).
49
+
50
+
Learn the tools, talk to us about what you want to change, and open a small PR. Or update an [example model](https://github.com/projectmesa/mesa-examples) (check open [issues](https://github.com/projectmesa/mesa-examples/issues))!
51
+
52
+
### I'm a developer (but not a modeller)
53
+
Awesome! You have the basics of open-source software development (if not check above), but not much modelling experience.
54
+
55
+
First step is to start thinking like a modeller. To understand the fine details about our library and contribute meaningfully, get some modelling experience:
56
+
- Go though our [Introductory Tutorial](https://mesa.readthedocs.io/en/latest/tutorials/intro_tutorial.html) and [Visualization Tutorial](https://mesa.readthedocs.io/en/latest/tutorials/visualization_tutorial.html). While going through them, dive into the source code to really see what everything does.
57
+
- Follow an ABM course (if possible). They might be a bit outdated programming language wise, but conceptual they're sound.
58
+
- This MOOC on ABM concepts: [Agent Based Modeling](https://ocw.tudelft.nl/course-lectures/agent-based-modeling/)
59
+
- This MOOC on practical ABM modelling: [Agent-Based Models with Python: An Introduction to Mesa](https://www.complexityexplorer.org/courses/172-agent-based-models-with-python-an-introduction-to-mesa)
60
+
- Go though multiple of our [examples](https://github.com/projectmesa/mesa-examples). Play with them, modify things and get a feel for Mesa and ABMs.
61
+
- Check our open [issues](https://github.com/projectmesa/mesa-examples/issues) for the examples.
62
+
- If you see anything you want to improve, feel free to open a (small) PR!
63
+
- If you have a feel for Mesa, check our [discussions](https://github.com/projectmesa/mesa/discussions) and [issues](https://github.com/projectmesa/mesa/issues).
64
+
- Also go thought our [release notes](https://github.com/projectmesa/mesa/releases) to see what we recently have been working on, and see some examples of successful PRs.
65
+
- Once you found or thought of a nice idea, comment on the issue/discussion (or open a new one) and get to work!
66
+
67
+
### I'm both
68
+
That's great! You can just start working on things, reach out to us. Skim to the list above if you feel you're missing anything. Start small but don't be afraid to dream big!
69
+
70
+
### I'm neither
71
+
Start with creating your own models, for fun. Once you have some experience, move to the topics above.
Copy file name to clipboardExpand all lines: HISTORY.md
+48Lines changed: 48 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,54 @@
1
1
---
2
2
title: Release History
3
3
---
4
+
# 3.0.0a3 (2024-08-30)
5
+
## Highlights
6
+
Developments toward Mesa 3.0 are steaming ahead, and our fourth alpha release is packed with features and updates - only 8 days after our third.
7
+
8
+
Mesa 3.0.0a3 contains one breaking change: We now automatically increase the `steps` counter by one at the beginning of each `Model.steps()` call. That means increasing `steps` by hand isn't necessary anymore.
9
+
10
+
The big new features is the experimental Voronoi grid that @vitorfrois implemented in #2084. It allows creating cells in a [Voronoi](https://en.wikipedia.org/wiki/Voronoi_diagram) layout as part of the experimental cell space. An example using it to model Cholera spread can be [found here](https://github.com/projectmesa/mesa-examples/pull/118).
11
+
12
+
The AgentSet got a lot of love with two brand new methods: `.groupby()` to split in groups (#2220) and `.set()` to easily assign variables to all agents in that set (#2254). The `select()` method is improved by allowing to select at most a fraction of the agents (#2253), and we split the `do()` method in `do()` and `map()` to make a distinction between the return types (#2237).
13
+
14
+
Furthermore, we improved the performance of accessing `Model.agents`, squashed a bug in SolaraViz, started testing on Python 3.13 and added a new benchmark model.
15
+
16
+
Our example models also got more love: We removed the `RandomActivation` scheduler in 14 models and removed SimultaneousActivation in 3 models ([examples#183](https://github.com/projectmesa/mesa-examples/pull/183)). They now use the automatic step increase and AgentSet functionality. We started testing our GIS model in CI ([examples#171](https://github.com/projectmesa/mesa-examples/pull/171)) and resolved a lot of bugs in them ([examples#172](https://github.com/projectmesa/mesa-examples/issues/172), help appreciated!).
17
+
18
+
Finally, we have two brand new examples: An Ant Colony Optimization model using an Ant System approach to the Traveling Salesman problem, a Mesa NetworkGrid, and a custom visualisation with SolaraViz ([examples#157](https://github.com/projectmesa/mesa-examples/pull/157) by @zjost). The first example using the `PropertyLayer` was added, a very fast implementation of Conway's Game of Life ([examples#182](https://github.com/projectmesa/mesa-examples/pull/182)).
19
+
20
+
To help the transition to Mesa 3.0, we started writing a [migration guide](https://mesa.readthedocs.io/en/latest/migration_guide.html). Progress is tracked in #2233, feedback and help is appreciated! Finally, we also added a new section to our [contributor guide](https://github.com/projectmesa/mesa/blob/main/CONTRIBUTING.md#i-have-no-idea-where-to-start) to get new contributors up to speed.
21
+
22
+
This pre-release can be installed as always with `pip install --pre mesa`
23
+
24
+
## What's Changed
25
+
### ⚠️ Breaking changes
26
+
* model: Automatically increase `steps` counter by @EwoutH in https://github.com/projectmesa/mesa/pull/2223
27
+
### 🧪 Experimental features
28
+
* Voronoi Tessellation based Discrete Space by @vitorfrois in https://github.com/projectmesa/mesa/pull/2084
29
+
### 🎉 New features added
30
+
* Add AgentSet.groupby by @quaquel in https://github.com/projectmesa/mesa/pull/2220
31
+
* AgentSet: Add `set` method by @EwoutH in https://github.com/projectmesa/mesa/pull/2254
32
+
### 🛠 Enhancements made
33
+
* Split AgentSet into map and do to separate return types by @quaquel in https://github.com/projectmesa/mesa/pull/2237
34
+
* Performance enhancements for Model.agents by @quaquel in https://github.com/projectmesa/mesa/pull/2251
35
+
* AgentSet: Allow selecting a fraction of agents in the AgentSet by @EwoutH in https://github.com/projectmesa/mesa/pull/2253
36
+
### 🐛 Bugs fixed
37
+
* SolaraViz: Reset components when params are changed by @rht in https://github.com/projectmesa/mesa/pull/2240
38
+
### 📜 Documentation improvements
39
+
* Contribution: Add "I have no idea where to start" section by @EwoutH in https://github.com/projectmesa/mesa/pull/2258
40
+
* Write initial Mesa Migration guide by @EwoutH in https://github.com/projectmesa/mesa/pull/2257
41
+
### 🔧 Maintenance
42
+
* CI: Add test job for Python 3.13 by @EwoutH in https://github.com/projectmesa/mesa/pull/2173
43
+
* Add pull request templates by @EwoutH in https://github.com/projectmesa/mesa/pull/2217
44
+
* benchmarks: Add BoltzmannWealth model by @EwoutH in https://github.com/projectmesa/mesa/pull/2252
45
+
* CI: Add optional dependency for examples by @EwoutH in https://github.com/projectmesa/mesa/pull/2261
46
+
47
+
## New Contributors
48
+
*@vitorfrois made their first contribution in https://github.com/projectmesa/mesa/pull/2084
In Mesa 3.0 alpha 2 (`v3.0.0a2`) we've done more clean-up in preparation for Mesa 3.0. We now [require](https://github.com/projectmesa/mesa/pull/2218)`super().__init__()` to run on initializing a Mesa model subclass, `Model.agents` is now fully reserved for the Model's internal AgentSet and we fixed a bug in our Solara space_drawer.
You can use (read) any reserved variable, but Mesa may update them automatically and rely on them, so modify/update at your own risk.
20
+
#### Private variables
21
+
Any variables starting with an underscore (`_`) are considered private and for Mesa's internal use. We might use any of those. Modifying or overwriting any private variable is at your own risk.
0 commit comments