pyafv 0.3.5__cp312-cp312-win_amd64.whl → 0.4.1__cp312-cp312-win_amd64.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.
- pyafv/__init__.py +2 -0
- pyafv/_version.py +1 -1
- pyafv/calibrate/__init__.py +15 -0
- pyafv/calibrate/core.py +90 -0
- pyafv/calibrate/deformable_polygon.py +372 -0
- pyafv/cell_geom.cp310-win32.pyd +0 -0
- pyafv/cell_geom.cp310-win_amd64.pyd +0 -0
- pyafv/cell_geom.cp311-win32.pyd +0 -0
- pyafv/cell_geom.cp311-win_amd64.pyd +0 -0
- pyafv/cell_geom.cp312-win32.pyd +0 -0
- pyafv/cell_geom.cp312-win_amd64.pyd +0 -0
- pyafv/finite_voronoi.py +69 -44
- pyafv/physical_params.py +109 -39
- pyafv-0.4.1.dist-info/METADATA +172 -0
- pyafv-0.4.1.dist-info/RECORD +19 -0
- {pyafv-0.3.5.dist-info → pyafv-0.4.1.dist-info}/WHEEL +1 -2
- pyafv-0.3.5.dist-info/METADATA +0 -117
- pyafv-0.3.5.dist-info/RECORD +0 -12
- pyafv-0.3.5.dist-info/top_level.txt +0 -1
- {pyafv-0.3.5.dist-info → pyafv-0.4.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
pyafv/__init__.py,sha256=ZaXG_ybxC_sNzACI-FfDMo3eePT42hXpjRfJh6mndu0,487
|
|
2
|
+
pyafv/_version.py,sha256=ownSF3BWT7Q7LdLpz2pG4BOXA_UOfWI1q4ykY4sEnyg,44
|
|
3
|
+
pyafv/backend.py,sha256=MlQThqIlTGXt__dj44rSutZLexKJTl9NaOEZ5s1otns,438
|
|
4
|
+
pyafv/cell_geom_fallback.py,sha256=eyhDC6Qe8_E_H59pNSwXeYA1DvJW1bHEnemK2TC8P0Y,9391
|
|
5
|
+
pyafv/finite_voronoi.py,sha256=Cglfq6PGJUDpxigqLkHasoDj8iTdYynDx8YTkSaAH9c,46177
|
|
6
|
+
pyafv/physical_params.py,sha256=EU4WEXbdjVGDvH8hucHlQX3kkB3y6Ad-rjVmWEoGeHc,9368
|
|
7
|
+
pyafv/calibrate/__init__.py,sha256=P40OslmYcHFoMLI6SeEHg7iz34xJ3HNMyG1NijY05AY,420
|
|
8
|
+
pyafv/calibrate/core.py,sha256=Y37v4b_Tu-GayTNXpcQJY0Wt6HhglbnLh4JKlue21KA,4217
|
|
9
|
+
pyafv/calibrate/deformable_polygon.py,sha256=s98fNmmRDGktQnjjMZFpTZ9cYcYkChpq4a0nSgoa6t8,12830
|
|
10
|
+
pyafv/cell_geom.cp310-win32.pyd,sha256=_FnS-Brv2NHYRUkpTiStQCpyHDX-IrTCSDf_oQP_mxg,166400
|
|
11
|
+
pyafv/cell_geom.cp310-win_amd64.pyd,sha256=a8Pw4dZRqOna-sppnIu7wFZ0HhXFrLwMOpPwCNefoEQ,200192
|
|
12
|
+
pyafv/cell_geom.cp311-win32.pyd,sha256=LlmS3XPXJKLXL8siwexHelvWCTBoK6i1pXB0gu6ZZCk,165888
|
|
13
|
+
pyafv/cell_geom.cp311-win_amd64.pyd,sha256=rWpLQwibjpno4GLHBlptxyND2okliwKi1DrjtjNbqqg,200192
|
|
14
|
+
pyafv/cell_geom.cp312-win32.pyd,sha256=cxCwYEYNxLKw2XNzFag5kargfeaQrkL5svtP6IKp30k,172544
|
|
15
|
+
pyafv/cell_geom.cp312-win_amd64.pyd,sha256=m3AhWyE8gf8KQvGmIobWQlckZDYG52RX6mYwFk7v2ZQ,201728
|
|
16
|
+
pyafv-0.4.1.dist-info/METADATA,sha256=QKB6be-e7XCkhAzuqfCmkrqdctrvmO7ntxJ_1Vfjpn4,9014
|
|
17
|
+
pyafv-0.4.1.dist-info/WHEEL,sha256=4wDLoDnOdOlNWH83WHOgXQrFhqZwdpD9rGaw2zeoj9o,97
|
|
18
|
+
pyafv-0.4.1.dist-info/licenses/LICENSE,sha256=UHfiLQ93gkQMOoN559ZBeG9kywkNcvDgxA9MRniWOpY,1086
|
|
19
|
+
pyafv-0.4.1.dist-info/RECORD,,
|
pyafv-0.3.5.dist-info/METADATA
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: pyafv
|
|
3
|
-
Version: 0.3.5
|
|
4
|
-
Summary: Python implementation of the active-finite-Voronoi (AFV) model
|
|
5
|
-
Author-email: "Wei Wang (汪巍)" <ww000721@gmail.com>
|
|
6
|
-
License-Expression: MIT
|
|
7
|
-
Project-URL: Download, https://pypi.org/project/pyafv/#files
|
|
8
|
-
Project-URL: Source Code, https://github.com/wwang721/pyafv
|
|
9
|
-
Project-URL: Documentation, https://pyafv.readthedocs.io/
|
|
10
|
-
Project-URL: Changelog, https://github.com/wwang721/pyafv/releases/latest
|
|
11
|
-
Keywords: voronoi-model,cellular-patterns,biological-modeling
|
|
12
|
-
Classifier: Development Status :: 4 - Beta
|
|
13
|
-
Classifier: Intended Audience :: Developers
|
|
14
|
-
Classifier: Intended Audience :: Science/Research
|
|
15
|
-
Classifier: Programming Language :: Python :: 3
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
-
Classifier: Operating System :: OS Independent
|
|
22
|
-
Classifier: Topic :: Scientific/Engineering
|
|
23
|
-
Requires-Python: <3.15,>=3.10
|
|
24
|
-
Description-Content-Type: text/markdown
|
|
25
|
-
License-File: LICENSE
|
|
26
|
-
Requires-Dist: numpy>=1.26.4
|
|
27
|
-
Requires-Dist: scipy>=1.13.1
|
|
28
|
-
Requires-Dist: matplotlib>=3.8.4
|
|
29
|
-
Provides-Extra: examples
|
|
30
|
-
Requires-Dist: ipywidgets>=8.1.5; extra == "examples"
|
|
31
|
-
Requires-Dist: jupyter>=1.1.0; extra == "examples"
|
|
32
|
-
Requires-Dist: tqdm>=4.67.1; extra == "examples"
|
|
33
|
-
Dynamic: license-file
|
|
34
|
-
|
|
35
|
-
[](https://pypi.org/project/pyafv/)
|
|
36
|
-
[](https://pypi.org/project/pyafv/)
|
|
37
|
-
[](https://doi.org/10.5281/zenodo.18091659)
|
|
38
|
-
<!--[](https://github.com/wwang721/pyafv/actions/workflows/tests.yml?query=branch:main)-->
|
|
39
|
-
[](https://github.com/wwang721/pyafv/actions/workflows/tests.yml)
|
|
40
|
-
[](https://codecov.io/github/wwang721/pyafv/tree/main)
|
|
41
|
-
[](https://opensource.org/licenses/MIT)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
# PyAFV
|
|
45
|
-
|
|
46
|
-
Python code that implements the **active-finite-Voronoi (AFV) model** in 2D.
|
|
47
|
-
The AFV framework was introduced and developed in, for example, Refs. [[1](#huang2023bridging)–[3](#wang2026divergence)].
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
## Installation
|
|
51
|
-
|
|
52
|
-
To install **PyAFV** with `pip`, run:
|
|
53
|
-
```bash
|
|
54
|
-
pip install pyafv
|
|
55
|
-
```
|
|
56
|
-
The package supports Python ≥ 3.10 and < 3.15.
|
|
57
|
-
To verify that the installation was successful and that the correct version is installed, run the following in Python:
|
|
58
|
-
```python
|
|
59
|
-
import pyafv
|
|
60
|
-
print(pyafv.__version__)
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
## Usage
|
|
65
|
-
|
|
66
|
-
<!--Using `uv run python`, you should be able to import `pyafv` from anywhere within the repository directory.-->
|
|
67
|
-
The following example demonstrates how to construct a finite-Voronoi diagram:
|
|
68
|
-
```python
|
|
69
|
-
import numpy as np
|
|
70
|
-
import pyafv as afv
|
|
71
|
-
|
|
72
|
-
N = 100 # number of cells
|
|
73
|
-
pts = np.random.rand(N, 2) * 10 # initial positions
|
|
74
|
-
params = afv.PhysicalParams() # use default parameter values
|
|
75
|
-
sim = afv.FiniteVoronoiSimulator(pts, params) # initialize the simulator
|
|
76
|
-
sim.plot_2d(show=True) # visualize the Voronoi diagram
|
|
77
|
-
```
|
|
78
|
-
To compute the conservative forces and extract detailed geometric information (e.g., cell areas, vertices, and edges), call:
|
|
79
|
-
```python
|
|
80
|
-
diag = sim.build()
|
|
81
|
-
```
|
|
82
|
-
The returned object `diag` is a Python `dict` containing these quantities.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
## More information
|
|
86
|
-
|
|
87
|
-
GitHub: [https://github.com/wwang721/pyafv](https://github.com/wwang721/pyafv)
|
|
88
|
-
|
|
89
|
-
See important [**issues**](https://github.com/wwang721/pyafv/issues?q=is%3Aissue%20state%3Aclosed) for additional context, such as:
|
|
90
|
-
* [QhullError when 3+ points are collinear #1](https://github.com/wwang721/pyafv/issues/1) [Closed - see [comments](https://github.com/wwang721/pyafv/issues/1#issuecomment-3701355742)]
|
|
91
|
-
* [Add customized plotting to examples illustrating access to vertices and edges #5](https://github.com/wwang721/pyafv/issues/5) [Completed in PR [#7](https://github.com/wwang721/pyafv/pull/7)]
|
|
92
|
-
* [Time step dependence of intercellular adhesion in simulations #8](https://github.com/wwang721/pyafv/issues/8) [Closed in PR [#9](https://github.com/wwang721/pyafv/pull/9)]
|
|
93
|
-
|
|
94
|
-
Full documentation on [readthedocs](https://pyafv.readthedocs.io/en/latest/)!
|
|
95
|
-
|
|
96
|
-
## References
|
|
97
|
-
|
|
98
|
-
<table>
|
|
99
|
-
<tr>
|
|
100
|
-
<td id="huang2023bridging" valign="top">[1]</td>
|
|
101
|
-
<td>
|
|
102
|
-
J. Huang, H. Levine, and D. Bi, <em>Bridging the gap between collective motility and epithelial-mesenchymal transitions through the active finite Voronoi model</em>, <a href="https://doi.org/10.1039/D3SM00327B">Soft Matter <strong>19</strong>, 9389 (2023)</a>.
|
|
103
|
-
</td>
|
|
104
|
-
</tr>
|
|
105
|
-
<tr>
|
|
106
|
-
<td id="teomy2018confluent" valign="top">[2]</td>
|
|
107
|
-
<td>
|
|
108
|
-
E. Teomy, D. A. Kessler, and H. Levine, <em>Confluent and nonconfluent phases in a model of cell tissue</em>, <a href="https://doi.org/10.1103/PhysRevE.98.042418">Phys. Rev. E <strong>98</strong>, 042418 (2018)</a>.
|
|
109
|
-
</td>
|
|
110
|
-
</tr>
|
|
111
|
-
<tr>
|
|
112
|
-
<td id="wang2026divergence" valign="top">[3]</td>
|
|
113
|
-
<td>
|
|
114
|
-
W. Wang (汪巍) and B. A. Camley, <em>Divergence of detachment forces in the finite-Voronoi model</em>, manuscript in preparation (2026).
|
|
115
|
-
</td>
|
|
116
|
-
</tr>
|
|
117
|
-
</table>
|
pyafv-0.3.5.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
pyafv/__init__.py,sha256=xN4BFNCwjuWbWHEgLsUdIYuqBWTVstIm0enHNDewIUk,444
|
|
2
|
-
pyafv/_version.py,sha256=gQDlcL6MllS8uLWOxTY0_l-QLg8CB2UUn6w_si9mRjE,44
|
|
3
|
-
pyafv/backend.py,sha256=MlQThqIlTGXt__dj44rSutZLexKJTl9NaOEZ5s1otns,438
|
|
4
|
-
pyafv/cell_geom.cp312-win_amd64.pyd,sha256=xuFzoZI71Tq6zXuN8y8mJvfwTa-9QjjOTYp9aYs7W-s,201728
|
|
5
|
-
pyafv/cell_geom_fallback.py,sha256=eyhDC6Qe8_E_H59pNSwXeYA1DvJW1bHEnemK2TC8P0Y,9391
|
|
6
|
-
pyafv/finite_voronoi.py,sha256=lziYrBkG8cdwO6qZwOxU6OkUpXNKcekfPiqOFdx2wvU,45007
|
|
7
|
-
pyafv/physical_params.py,sha256=XeM88XL8-PxLU-B5lW5U1MYy-nMNqTcSYQp1gmUw64M,5324
|
|
8
|
-
pyafv-0.3.5.dist-info/licenses/LICENSE,sha256=UHfiLQ93gkQMOoN559ZBeG9kywkNcvDgxA9MRniWOpY,1086
|
|
9
|
-
pyafv-0.3.5.dist-info/METADATA,sha256=yz5ezLpOOyNtW7Y6f1wdx0EMC-pgD0WawLVK9wl5-RY,5591
|
|
10
|
-
pyafv-0.3.5.dist-info/WHEEL,sha256=8UP9x9puWI0P1V_d7K2oMTBqfeLNm21CTzZ_Ptr0NXU,101
|
|
11
|
-
pyafv-0.3.5.dist-info/top_level.txt,sha256=mrKQNqc4GQxuZ7hd5UrKxbA_AJsuSqiJyMxL7Nu7va0,6
|
|
12
|
-
pyafv-0.3.5.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pyafv
|
|
File without changes
|