From 6e012ab010ec54dcc1065aed1af93fe788d8a62f Mon Sep 17 00:00:00 2001 From: Jan Kwakkel Date: Wed, 23 Oct 2024 21:00:39 +0200 Subject: [PATCH 1/2] Update Readme.md --- mesa/examples/basic/schelling/Readme.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/mesa/examples/basic/schelling/Readme.md b/mesa/examples/basic/schelling/Readme.md index af3f01b3563..db57c758d49 100644 --- a/mesa/examples/basic/schelling/Readme.md +++ b/mesa/examples/basic/schelling/Readme.md @@ -6,14 +6,6 @@ The Schelling segregation model is a classic agent-based model, demonstrating ho By default, the number of similar neighbors the agents need to be happy is set to 3. That means the agents would be perfectly happy with a majority of their neighbors being of a different color (e.g. a Blue agent would be happy with five Red neighbors and three Blue ones). Despite this, the model consistently leads to a high degree of segregation, with most agents ending up with no neighbors of a different color. -## Installation - -To install the dependencies use pip and the requirements.txt in this directory. e.g. - -``` - $ pip install -r requirements.txt -``` - ## How to Run To run the model interactively, in this directory, run the following command @@ -32,8 +24,9 @@ To run the model with the grid displayed as an ASCII text, run `python run_ascii ## Files +* ``model.py``: Contains the Schelling model class +* ``agent.py``: Contains the Schelling agent class * ``app.py``: Code for the interactive visualization. -* ``schelling.py``: Contains the agent class, and the overall model class. * ``analysis.ipynb``: Notebook demonstrating how to run experiments and parameter sweeps on the model. ## Further Reading From 1e686fab5f84e177c4441bc7f4cb610d91748ab9 Mon Sep 17 00:00:00 2001 From: Jan Kwakkel Date: Thu, 24 Oct 2024 11:58:36 +0200 Subject: [PATCH 2/2] Update mesa/examples/basic/schelling/Readme.md Co-authored-by: Ewout ter Hoeven --- mesa/examples/basic/schelling/Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesa/examples/basic/schelling/Readme.md b/mesa/examples/basic/schelling/Readme.md index db57c758d49..972f1fdb715 100644 --- a/mesa/examples/basic/schelling/Readme.md +++ b/mesa/examples/basic/schelling/Readme.md @@ -25,7 +25,7 @@ To run the model with the grid displayed as an ASCII text, run `python run_ascii ## Files * ``model.py``: Contains the Schelling model class -* ``agent.py``: Contains the Schelling agent class +* ``agents.py``: Contains the Schelling agent class * ``app.py``: Code for the interactive visualization. * ``analysis.ipynb``: Notebook demonstrating how to run experiments and parameter sweeps on the model.