Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 5 additions & 21 deletions examples/Schelling/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,13 @@
A simple implementation of a Schelling segregation model.


Implemented here to test / demonstrate several Mesa concepts and features:
- This version demonstrates the ASCII renderer.

Implemented here to test / demonstrate several Mesa concepts and features.

### To run this example

* Launch the model
```python
python Schelling.py
* Launch the model with the browser visualization:
```sh
python SchellingModular.py
```
* Visit your browser: http://127.0.0.1:8888/
* Open your browser to: http://127.0.0.1:8888/
* In your browser hit *reset*, then *run*


To use with iPython, run this code from the command line, e.g.
$ ipython -i Schelling.py

viz is the visualization wrapper around
To print the current state of the model:
viz.render()

To advance the model by one step and print the new state:
viz.step()

To advance the model by e.g. 10 steps and print the new state:
viz.step_forward(10)
15 changes: 0 additions & 15 deletions examples/Schelling/Schelling.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,6 @@
=========================================

A simple implementation of a Schelling segregation model.

This version demonstrates the ASCII renderer.
To use, run this code from the command line, e.g.
$ ipython -i Schelling.py

viz is the visualization wrapper around
To print the current state of the model:
viz.render()

To advance the model by one step and print the new state:
viz.step()

To advance the model by e.g. 10 steps and print the new state:
viz.step_forward(10)

'''

from __future__ import division # For Python 2.x compatibility
Expand Down