piegy 1.1.2__py3-none-any.whl → 1.1.3__py3-none-any.whl
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.
- piegy/__version__.py +2 -1
- piegy/videos.py +1 -0
- {piegy-1.1.2.dist-info → piegy-1.1.3.dist-info}/METADATA +10 -7
- {piegy-1.1.2.dist-info → piegy-1.1.3.dist-info}/RECORD +7 -7
- {piegy-1.1.2.dist-info → piegy-1.1.3.dist-info}/WHEEL +0 -0
- {piegy-1.1.2.dist-info → piegy-1.1.3.dist-info}/licenses/LICENSE.txt +0 -0
- {piegy-1.1.2.dist-info → piegy-1.1.3.dist-info}/top_level.txt +0 -0
piegy/__version__.py
CHANGED
@@ -12,9 +12,10 @@ version history:
|
|
12
12
|
0.1.8: updated installation in README
|
13
13
|
0.1.9: first round of full debugging
|
14
14
|
|
15
|
-
1.0.0: first version in PyPI
|
15
|
+
1.0.0: first version in PyPI.
|
16
16
|
1.1.0: debugging. Updated a range of functions, in the following modules: figures, videos, test_var, model, figure_tools
|
17
17
|
1.1.1: minor debugging in model module.
|
18
18
|
1.1.2: fix text bad location in figure_tools, update labeling and titling in figures and test_var. Add dpi param to make_video in videos. Remove reset_data function in model.
|
19
|
+
1.1.3: update README.
|
19
20
|
|
20
21
|
'''
|
piegy/videos.py
CHANGED
@@ -209,6 +209,7 @@ def make_video(sim, func_name = 'UV_heatmap', frames = 100, dpi = 200, fps = 30,
|
|
209
209
|
- sim: a stochastic_model.simulation object, the simulation results.
|
210
210
|
- func_name: what function to use to make the frames. Should be one of the functions in figures.py
|
211
211
|
- frames: how many frames to make. Use more frames for more smooth evolutions.
|
212
|
+
- dpi: dots per inch.
|
212
213
|
- fps: frames per second.
|
213
214
|
- U_color: color for U's videos. Color maps or regular colors, based on what function you use.
|
214
215
|
- V_color: color for V's videos.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: piegy
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.3
|
4
4
|
Summary: Payoff-Driven Stochastic Spatial Model for Evolutionary Game Theory
|
5
5
|
Author-email: Chenning Xu <cxu7@caltech.edu>
|
6
6
|
License: BSD 3-Clause License
|
@@ -55,7 +55,7 @@ Dynamic: license-file
|
|
55
55
|
|
56
56
|
# piegy
|
57
57
|
|
58
|
-
The package full name is: Payoff-Driven Stochastic Spatial Model for Evolutionary Game Theory
|
58
|
+
The package full name is: Payoff-Driven Stochastic Spatial Model for Evolutionary Game Theory. "pi" refers to "payoff, and "egy" are taken from "Evolutionary Game Theory".
|
59
59
|
|
60
60
|
Provides a stochastic spatial model for simulating the interaction and evolution of two species in either 1D or 2D space, as well as analytic tools.
|
61
61
|
|
@@ -69,7 +69,7 @@ pip install piegy
|
|
69
69
|
|
70
70
|
## Documentation and Source
|
71
71
|
|
72
|
-
See source code at: [piegy GitHub
|
72
|
+
See source code at: [piegy GitHub-repo](https://github.com/Chenning04/piegy.git).
|
73
73
|
The *piegy* documentation at: [piegy Documentation](https://piegy.readthedocs.io/en/).
|
74
74
|
|
75
75
|
## How the Model Works
|
@@ -80,7 +80,7 @@ We use the Gillepie algorithm as the fundamental event-selection algorithm. At e
|
|
80
80
|
|
81
81
|
## Analytic Tools
|
82
82
|
|
83
|
-
The *piegy* package also provides a wide range of analytic and supportive tools alongside the main model, such as plotting, numerical tools, data saving & reading, etc. We also provide the *piegy.videos* module for more direct visualizations
|
83
|
+
The *piegy* package also provides a wide range of analytic and supportive tools alongside the main model, such as plotting, numerical tools, data saving & reading, etc. We also provide the *piegy.videos* module for more direct visualizations such as how population distribution change over time.
|
84
84
|
|
85
85
|
## Examples
|
86
86
|
|
@@ -88,15 +88,18 @@ To get started, simply get our demo model and run simulation:
|
|
88
88
|
|
89
89
|
```python
|
90
90
|
from piegy import model, figures
|
91
|
+
import matplotlib.pyplot as plt
|
91
92
|
|
92
93
|
sim = model.demo_model()
|
93
94
|
model.run(sim)
|
94
95
|
|
95
|
-
|
96
|
-
|
96
|
+
fig1, ax1 = plt.subplots()
|
97
|
+
figures.UV_dyna(sim, ax1)
|
98
|
+
fig2, ax2 = plt.subplots(1, 2, figsize = (12.8, 4.8))
|
99
|
+
U_hmap, V_hmap = figures.UV_heatmap(sim, ax2[0], ax2[1])
|
97
100
|
```
|
98
101
|
|
99
|
-
The figures reveal
|
102
|
+
The figures reveal population dynamics and steady state population distribution.
|
100
103
|
|
101
104
|
|
102
105
|
## Acknowledgments
|
@@ -1,16 +1,16 @@
|
|
1
1
|
piegy/__init__.py,sha256=Lrh6NegSvo6LOCXg_tBTu804eicnHpQY2zmE0FchjKE,3241
|
2
|
-
piegy/__version__.py,sha256=
|
2
|
+
piegy/__version__.py,sha256=bfx1My4_mpMZlHLCS9hPCp888d56dz178h1mb2itmNo,724
|
3
3
|
piegy/analysis.py,sha256=1cF06igQMGJGVjLiyhtgepGk8fYhzvL0orI48tOK1qY,8713
|
4
4
|
piegy/data_tools.py,sha256=lNFOX4H0o_WfRSNQoC9QGCK66-IdrZ0zCnz12N-Ael4,3599
|
5
5
|
piegy/figures.py,sha256=xXvr9LcGGhpeVibWTnIiDQlc_kBPibT8qYU5ALKS-zw,19063
|
6
6
|
piegy/model.py,sha256=iTC0Ybp4qtrCcX_NcmEEk4bbqIXqUh470eF0CPbeEK0,45311
|
7
7
|
piegy/test_var.py,sha256=HpdJf8i90iWteoJaVnYt37NJo1it2cf9srCsuYtwc7k,23628
|
8
|
-
piegy/videos.py,sha256=
|
8
|
+
piegy/videos.py,sha256=ReLrMwwgZfOgtsXPW5q29AAyFv0_E4A3DKo6BUFzups,10213
|
9
9
|
piegy/tools/__init__.py,sha256=eYOl_HJHDonYexfrmKh3koOlxvtSo46vH6jHvCEEB4k,300
|
10
10
|
piegy/tools/figure_tools.py,sha256=IWxMF_Yali37l2knzKLAcvrE8ndAQhCixfUu1_sWEf0,6975
|
11
11
|
piegy/tools/file_tools.py,sha256=ncxFWeHfIE-GYLQlOrahFlhBgqPyuY3R5_93fpQeCEs,630
|
12
|
-
piegy-1.1.
|
13
|
-
piegy-1.1.
|
14
|
-
piegy-1.1.
|
15
|
-
piegy-1.1.
|
16
|
-
piegy-1.1.
|
12
|
+
piegy-1.1.3.dist-info/licenses/LICENSE.txt,sha256=wfzEht_CxOcfGGmg3f3at4mWJb9rTBjA51mXLl_3O3g,1498
|
13
|
+
piegy-1.1.3.dist-info/METADATA,sha256=HhWIqo8y685rQPZv-fZnDhz-n1O4gW4aZZ4FfcF3UHE,5291
|
14
|
+
piegy-1.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
15
|
+
piegy-1.1.3.dist-info/top_level.txt,sha256=k4QLYL8PqdqDuy95-4NZD_FVLqJDsmq67tpKkBn4vMw,6
|
16
|
+
piegy-1.1.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|