File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed
advanced/epstein_civil_violence Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,12 @@ The model generates mass uprising as self-reinforcing processes: if enough agent
8
8
9
9
## How to Run
10
10
11
- To run the model interactively, run `` EpsteinCivilViolenceServer.py `` in this directory. e.g.
11
+ To run the model interactively, in this directory, run the following command
12
12
13
13
```
14
- $ python EpsteinCivilViolenceServer .py
14
+ $ solara run app .py
15
15
```
16
16
17
- Then open your browser to [ http://127.0.0.1:8521/ ] ( http://127.0.0.1:8521/ ) and press Reset, then Run.
18
-
19
17
## Files
20
18
21
19
* `` model.py `` : Core model code.
Original file line number Diff line number Diff line change @@ -24,23 +24,12 @@ To install the dependencies use pip and the requirements.txt in this directory.
24
24
25
25
## How to Run
26
26
27
- To run the model interactively, run `` mesa runserver `` in this directory. e.g.
27
+ To run the model interactively, in this directory, run the following command
28
28
29
29
```
30
- $ mesa runserver
30
+ $ solara run app.py
31
31
```
32
32
33
- Then open your browser to [ http://127.0.0.1:8521/ ] ( http://127.0.0.1:8521/ ) and press Reset, then Run.
34
-
35
- or
36
-
37
- Directly run the file `` run.py `` in the terminal. e.g.
38
-
39
- ```
40
- $ python run.py
41
- ```
42
-
43
-
44
33
## Files
45
34
46
35
* `` model.py `` : Contains the agent class, and the overall model class.
You can’t perform that action at this time.
0 commit comments