pyafv 0.3.3__cp312-cp312-win_arm64.whl → 0.3.6__cp312-cp312-win_arm64.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 +9 -6
- pyafv/_version.py +2 -0
- pyafv/backend.py +9 -5
- pyafv/cell_geom.cp312-win_arm64.pyd +0 -0
- pyafv/cell_geom_fallback.py +249 -0
- pyafv/{finite_voronoi_fast.py → finite_voronoi.py} +236 -53
- pyafv/physical_params.py +58 -18
- {pyafv-0.3.3.dist-info → pyafv-0.3.6.dist-info}/METADATA +13 -5
- pyafv-0.3.6.dist-info/RECORD +12 -0
- pyafv/finite_voronoi_fallback.py +0 -989
- pyafv/simulator.py +0 -37
- pyafv-0.3.3.dist-info/RECORD +0 -12
- {pyafv-0.3.3.dist-info → pyafv-0.3.6.dist-info}/WHEEL +0 -0
- {pyafv-0.3.3.dist-info → pyafv-0.3.6.dist-info}/licenses/LICENSE +0 -0
- {pyafv-0.3.3.dist-info → pyafv-0.3.6.dist-info}/top_level.txt +0 -0
pyafv/simulator.py
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# API-facing wrapper
|
|
2
|
-
|
|
3
|
-
from .backend import backend_simulator, _BACKEND_NAME
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class FiniteVoronoiSimulator(backend_simulator):
|
|
7
|
-
"""Finite Voronoi Simulator.
|
|
8
|
-
|
|
9
|
-
This class provides an interface to simulate finite Voronoi models.
|
|
10
|
-
It wraps around the backend simulator implementation, which may be
|
|
11
|
-
either a Cython-accelerated version or a pure Python fallback.
|
|
12
|
-
|
|
13
|
-
Attributes:
|
|
14
|
-
See `backend_simulator` for details.
|
|
15
|
-
"""
|
|
16
|
-
# Define as a class attribute
|
|
17
|
-
_BACKEND = _BACKEND_NAME
|
|
18
|
-
|
|
19
|
-
def __init__(self, *args, **kwargs):
|
|
20
|
-
# Ensure you call the parent constructor
|
|
21
|
-
super().__init__(*args, **kwargs)
|
|
22
|
-
|
|
23
|
-
if self._BACKEND not in {"cython", "numba"}: # pragma: no cover
|
|
24
|
-
# raise warning to inform user about fallback
|
|
25
|
-
import warnings
|
|
26
|
-
warnings.warn(
|
|
27
|
-
"Could not import the Cython-built extension module. "
|
|
28
|
-
"Falling back to the pure Python implementation, which may be slower. "
|
|
29
|
-
"To enable the accelerated version, ensure that all dependencies are installed.",
|
|
30
|
-
RuntimeWarning,
|
|
31
|
-
stacklevel=2,
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
__all__ = [
|
|
36
|
-
"FiniteVoronoiSimulator",
|
|
37
|
-
]
|
pyafv-0.3.3.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
pyafv/__init__.py,sha256=mDB4wmm8WnC0zWVIYzo22NH1ifnZt0mF9hqq8R3qH_0,394
|
|
2
|
-
pyafv/backend.py,sha256=Zu2ajWWnKxrg1FTEGyD43sybSAuKiqLOQ0nGiwIdxmQ,411
|
|
3
|
-
pyafv/cell_geom.cp312-win_arm64.pyd,sha256=o6C5a9lDGMh7tiz6fSjwciV9mfcPNaFhhxZsR1ZTKVs,190976
|
|
4
|
-
pyafv/finite_voronoi_fallback.py,sha256=UUmkn0pxzvrNjzjIsHrIsnxlXtZglg8_FrObN9KblI0,43816
|
|
5
|
-
pyafv/finite_voronoi_fast.py,sha256=4LSM_CWGRtyC7uYuOI36aedrKvwVnxYCe7Hc5_5HFN8,36897
|
|
6
|
-
pyafv/physical_params.py,sha256=DlHDcwjeH-sPhrbRLYnNYU4H7xugjaEmp3SxISlohq4,4018
|
|
7
|
-
pyafv/simulator.py,sha256=r-OTmZRMBHMyJHReTieC92Rl-zBEcBuRvocqu6wPxQg,1255
|
|
8
|
-
pyafv-0.3.3.dist-info/licenses/LICENSE,sha256=UHfiLQ93gkQMOoN559ZBeG9kywkNcvDgxA9MRniWOpY,1086
|
|
9
|
-
pyafv-0.3.3.dist-info/METADATA,sha256=IN2ZksQhGo1nudgr1th-SbXj1co3blvLp9D8GMeflUM,5238
|
|
10
|
-
pyafv-0.3.3.dist-info/WHEEL,sha256=me1aG6nvouDIdjWXNa5q_zebZZEPzD53N4rwsapSjvI,101
|
|
11
|
-
pyafv-0.3.3.dist-info/top_level.txt,sha256=mrKQNqc4GQxuZ7hd5UrKxbA_AJsuSqiJyMxL7Nu7va0,6
|
|
12
|
-
pyafv-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|