piegy 2.1.0__cp38-cp38-win32.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.
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.1
2
+ Name: piegy
3
+ Version: 2.1.0
4
+ Summary: Payoff-Driven Stochastic Spatial Model for Evolutionary Game Theory
5
+ Author-email: Chenning Xu <cxu7@caltech.edu>
6
+ License: BSD 3-Clause License
7
+
8
+ Copyright (c) 2025, Chenning Xu
9
+
10
+ Redistribution and use in source and binary forms, with or without
11
+ modification, are permitted provided that the following conditions are met:
12
+
13
+ 1. Redistributions of source code must retain the above copyright notice, this
14
+ list of conditions and the following disclaimer.
15
+
16
+ 2. Redistributions in binary form must reproduce the above copyright notice,
17
+ this list of conditions and the following disclaimer in the documentation
18
+ and/or other materials provided with the distribution.
19
+
20
+ 3. Neither the name of the copyright holder nor the names of its
21
+ contributors may be used to endorse or promote products derived from
22
+ this software without specific prior written permission.
23
+
24
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+
35
+ Project-URL: Source, https://github.com/Chenning04/piegy.git
36
+ Project-URL: Documentation, https://piegy.readthedocs.io/en/
37
+ Keywords: Game Theory,Evolutionary Game Theory,Spatial Model,Stochastic Model,Payoff Driven
38
+ Classifier: Development Status :: 4 - Beta
39
+ Classifier: Intended Audience :: Developers
40
+ Classifier: Intended Audience :: Science/Research
41
+ Classifier: Intended Audience :: Education
42
+ Classifier: License :: OSI Approved :: BSD License
43
+ Classifier: Programming Language :: Python :: 3
44
+ Classifier: Programming Language :: Python :: 3.10
45
+ Classifier: Programming Language :: Python :: 3.11
46
+ Classifier: Operating System :: OS Independent
47
+ Requires-Python: >=3.8
48
+ Description-Content-Type: text/markdown
49
+ License-File: LICENSE.txt
50
+ Requires-Dist: numpy
51
+ Requires-Dist: matplotlib
52
+ Requires-Dist: moviepy>=2.1.1
53
+ Requires-Dist: seaborn>=0.13.2
54
+
55
+ # piegy
56
+
57
+ The package full name is: Payoff-Driven Stochastic Spatial Model for Evolutionary Game Theory. "pi" refers to "payoff, and "egy" is taken from "Evolutionary Game Theory".
58
+
59
+ 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.
60
+
61
+ ## Installation
62
+
63
+ To install *piegy*, run the following in terminal:
64
+
65
+ ```bash
66
+ pip install piegy
67
+ ```
68
+
69
+ ## Documentation and Source
70
+
71
+ See source code at: [piegy GitHub-repo](https://github.com/Chenning04/piegy.git).
72
+ The *piegy* documentation at: [piegy Documentation](https://piegy.readthedocs.io/en/).
73
+
74
+ ## How the Model Works
75
+
76
+ Our model can be summarized as "classical evolutionary game theory endowed with spatial structure and payoff-driven migration rules". Consider two species, predators and preys (denoted by *U* and *V*), in a rectangular region. We divide the region into N by M patches and simulate their interaction within a patch by classical game theory (i.e., payoff matrices and carrying capacity). Interactions across patches are simulated by payoff-driven migration rules. An individual migrates to a neighboring patch with probability weighted by payoff in the neighbors.
77
+
78
+ We use the Gillepie algorithm as the fundamental event-selection algorithm. At each time step, one event is selected and let happen; and the step size is continuous, dependent on the current state in the space. Data are recorded every some specified time interval.
79
+
80
+ ## Analytic Tools
81
+
82
+ 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.
83
+
84
+ ## C Core
85
+
86
+ From version 2 on, the *piegy* simulations are now equipped with a C core, which makes it significantly faster than previous versions.
87
+
88
+ ## Examples
89
+
90
+ To get started, simply get our demo model and run simulation:
91
+
92
+ ```python
93
+ from piegy import simulation, figures
94
+ import matplotlib.pyplot as plt
95
+
96
+ mod = simulation.demo_model()
97
+ simulation.run(mod)
98
+
99
+ fig1, ax1 = plt.subplots()
100
+ figures.UV_dyna(mod, ax1)
101
+ fig2, ax2 = plt.subplots(1, 2, figsize = (12.8, 4.8))
102
+ figures.UV_heatmap(mod, ax2[0], ax2[1])
103
+ ```
104
+
105
+ The figures reveal population dynamics and steady state population distribution.
106
+
107
+
108
+ ## Acknowledgments
109
+
110
+ - Thanks Professor Daniel Cooney at University of Illinois Urbana-Champaign. This package is developed alongside a project with Prof. Cooney and received enormous help from him.
111
+ - Special thanks to the open-source community for making this package possible.
112
+
@@ -0,0 +1,18 @@
1
+ piegy/__init__.py,sha256=3voZtYSFLmgQCRQsz2bTrhVSI_lJ-UXc78IY92ajWJM,2138
2
+ piegy/__version__.py,sha256=XKaDCdQoaHEBFn0RdDb0Gcjwotejw9Xi7M87I6KNPW4,1576
3
+ piegy/analysis.py,sha256=tJhJTSFJsK_Zr34s78Cy7Im1NtONctkdNmg0R0teTeU,8941
4
+ piegy/data_tools.py,sha256=uYEoCYO7ZVtKBsNDgco7kERvBlOFFK7wpTuqcCwCBEU,3573
5
+ piegy/figures.py,sha256=QAbCoIopa0FRkReXBG0ExFvG-wNevI8hK8Ar-Ph14II,18427
6
+ piegy/simulation.py,sha256=KV_fXQXXG6QI-kkSDQqC3F8moFd0m_orBWA69magk9Q,20405
7
+ piegy/simulation_py.py,sha256=s9cSdcIXc-n_njK5Y9KKolejOVrVtcy3Ou1UT7NmVdY,30340
8
+ piegy/test_var.py,sha256=weIaC-3jL9A3tLa_kpqPVLR0NQHwzzhaMtP8P0sFlA4,24145
9
+ piegy/videos.py,sha256=meG3kNCnmAsEc2LtLGk2VixQZ9Nx4dRYwK7DB17_LFk,10521
10
+ piegy/C_core/piegyc.cp38-win32.pyd,sha256=fZ7TEQzuCAB3KHEbtAOIwSgzLZirO2Zhm6hQ-ELzCKc,74801
11
+ piegy/tools/__init__.py,sha256=Zcr2OExiwY_Zeh_vVwDjbuHtTaI_eHOe8xwzgsVdja0,315
12
+ piegy/tools/figure_tools.py,sha256=pz7Y2L1S1rVpbjwUwlsp1v1LRgi8IJq8ybLDn3woSNg,7213
13
+ piegy/tools/file_tools.py,sha256=ThXsc2gBX8SbJWW07afolz1oHH0dJQfMvn9D3b-y7TE,659
14
+ piegy-2.1.0.dist-info/LICENSE.txt,sha256=1ihCy5mwfvcRiquE82AHAMhd4iVUzDfgL7eG8_tPwQ0,1526
15
+ piegy-2.1.0.dist-info/METADATA,sha256=kifTCjFWtsILaYF3m60BAVnRdy-eDMP8Lcaewc61P-k,5525
16
+ piegy-2.1.0.dist-info/WHEEL,sha256=BsoMMMHJGneA25n2FDquZW143lDYOuIAMJ0po_3Su94,95
17
+ piegy-2.1.0.dist-info/top_level.txt,sha256=k4QLYL8PqdqDuy95-4NZD_FVLqJDsmq67tpKkBn4vMw,6
18
+ piegy-2.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.3.2)
3
+ Root-Is-Purelib: false
4
+ Tag: cp38-cp38-win32
5
+
@@ -0,0 +1 @@
1
+ piegy