tnfr 4.5.1__py3-none-any.whl → 6.0.0__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.
- tnfr/__init__.py +270 -90
- tnfr/__init__.pyi +40 -0
- tnfr/_compat.py +11 -0
- tnfr/_version.py +7 -0
- tnfr/_version.pyi +7 -0
- tnfr/alias.py +631 -0
- tnfr/alias.pyi +140 -0
- tnfr/cache.py +732 -0
- tnfr/cache.pyi +232 -0
- tnfr/callback_utils.py +381 -0
- tnfr/callback_utils.pyi +105 -0
- tnfr/cli/__init__.py +89 -0
- tnfr/cli/__init__.pyi +47 -0
- tnfr/cli/arguments.py +199 -0
- tnfr/cli/arguments.pyi +33 -0
- tnfr/cli/execution.py +322 -0
- tnfr/cli/execution.pyi +80 -0
- tnfr/cli/utils.py +34 -0
- tnfr/cli/utils.pyi +8 -0
- tnfr/config/__init__.py +12 -0
- tnfr/config/__init__.pyi +8 -0
- tnfr/config/constants.py +104 -0
- tnfr/config/constants.pyi +12 -0
- tnfr/config/init.py +36 -0
- tnfr/config/init.pyi +8 -0
- tnfr/config/operator_names.py +106 -0
- tnfr/config/operator_names.pyi +28 -0
- tnfr/config/presets.py +104 -0
- tnfr/config/presets.pyi +7 -0
- tnfr/constants/__init__.py +228 -0
- tnfr/constants/__init__.pyi +104 -0
- tnfr/constants/core.py +158 -0
- tnfr/constants/core.pyi +17 -0
- tnfr/constants/init.py +31 -0
- tnfr/constants/init.pyi +12 -0
- tnfr/constants/metric.py +102 -0
- tnfr/constants/metric.pyi +19 -0
- tnfr/constants_glyphs.py +16 -0
- tnfr/constants_glyphs.pyi +12 -0
- tnfr/dynamics/__init__.py +136 -0
- tnfr/dynamics/__init__.pyi +83 -0
- tnfr/dynamics/adaptation.py +201 -0
- tnfr/dynamics/aliases.py +22 -0
- tnfr/dynamics/coordination.py +343 -0
- tnfr/dynamics/dnfr.py +2315 -0
- tnfr/dynamics/dnfr.pyi +33 -0
- tnfr/dynamics/integrators.py +561 -0
- tnfr/dynamics/integrators.pyi +35 -0
- tnfr/dynamics/runtime.py +521 -0
- tnfr/dynamics/sampling.py +34 -0
- tnfr/dynamics/sampling.pyi +7 -0
- tnfr/dynamics/selectors.py +680 -0
- tnfr/execution.py +216 -0
- tnfr/execution.pyi +65 -0
- tnfr/flatten.py +283 -0
- tnfr/flatten.pyi +28 -0
- tnfr/gamma.py +320 -89
- tnfr/gamma.pyi +40 -0
- tnfr/glyph_history.py +337 -0
- tnfr/glyph_history.pyi +53 -0
- tnfr/grammar.py +23 -153
- tnfr/grammar.pyi +13 -0
- tnfr/helpers/__init__.py +151 -0
- tnfr/helpers/__init__.pyi +66 -0
- tnfr/helpers/numeric.py +88 -0
- tnfr/helpers/numeric.pyi +12 -0
- tnfr/immutable.py +214 -0
- tnfr/immutable.pyi +37 -0
- tnfr/initialization.py +199 -0
- tnfr/initialization.pyi +73 -0
- tnfr/io.py +311 -0
- tnfr/io.pyi +11 -0
- tnfr/locking.py +37 -0
- tnfr/locking.pyi +7 -0
- tnfr/metrics/__init__.py +41 -0
- tnfr/metrics/__init__.pyi +20 -0
- tnfr/metrics/coherence.py +1469 -0
- tnfr/metrics/common.py +149 -0
- tnfr/metrics/common.pyi +15 -0
- tnfr/metrics/core.py +259 -0
- tnfr/metrics/core.pyi +13 -0
- tnfr/metrics/diagnosis.py +840 -0
- tnfr/metrics/diagnosis.pyi +89 -0
- tnfr/metrics/export.py +151 -0
- tnfr/metrics/glyph_timing.py +369 -0
- tnfr/metrics/reporting.py +152 -0
- tnfr/metrics/reporting.pyi +12 -0
- tnfr/metrics/sense_index.py +294 -0
- tnfr/metrics/sense_index.pyi +9 -0
- tnfr/metrics/trig.py +216 -0
- tnfr/metrics/trig.pyi +12 -0
- tnfr/metrics/trig_cache.py +105 -0
- tnfr/metrics/trig_cache.pyi +10 -0
- tnfr/node.py +255 -177
- tnfr/node.pyi +161 -0
- tnfr/observers.py +154 -150
- tnfr/observers.pyi +46 -0
- tnfr/ontosim.py +135 -134
- tnfr/ontosim.pyi +33 -0
- tnfr/operators/__init__.py +452 -0
- tnfr/operators/__init__.pyi +31 -0
- tnfr/operators/definitions.py +181 -0
- tnfr/operators/definitions.pyi +92 -0
- tnfr/operators/jitter.py +266 -0
- tnfr/operators/jitter.pyi +11 -0
- tnfr/operators/registry.py +80 -0
- tnfr/operators/registry.pyi +15 -0
- tnfr/operators/remesh.py +569 -0
- tnfr/presets.py +10 -23
- tnfr/presets.pyi +7 -0
- tnfr/py.typed +0 -0
- tnfr/rng.py +440 -0
- tnfr/rng.pyi +14 -0
- tnfr/selector.py +217 -0
- tnfr/selector.pyi +19 -0
- tnfr/sense.py +307 -142
- tnfr/sense.pyi +30 -0
- tnfr/structural.py +69 -164
- tnfr/structural.pyi +46 -0
- tnfr/telemetry/__init__.py +13 -0
- tnfr/telemetry/verbosity.py +37 -0
- tnfr/tokens.py +61 -0
- tnfr/tokens.pyi +41 -0
- tnfr/trace.py +520 -95
- tnfr/trace.pyi +68 -0
- tnfr/types.py +382 -17
- tnfr/types.pyi +145 -0
- tnfr/utils/__init__.py +158 -0
- tnfr/utils/__init__.pyi +133 -0
- tnfr/utils/cache.py +755 -0
- tnfr/utils/cache.pyi +156 -0
- tnfr/utils/data.py +267 -0
- tnfr/utils/data.pyi +73 -0
- tnfr/utils/graph.py +87 -0
- tnfr/utils/graph.pyi +10 -0
- tnfr/utils/init.py +746 -0
- tnfr/utils/init.pyi +85 -0
- tnfr/utils/io.py +157 -0
- tnfr/utils/io.pyi +10 -0
- tnfr/utils/validators.py +130 -0
- tnfr/utils/validators.pyi +19 -0
- tnfr/validation/__init__.py +25 -0
- tnfr/validation/__init__.pyi +17 -0
- tnfr/validation/compatibility.py +59 -0
- tnfr/validation/compatibility.pyi +8 -0
- tnfr/validation/grammar.py +149 -0
- tnfr/validation/grammar.pyi +11 -0
- tnfr/validation/rules.py +194 -0
- tnfr/validation/rules.pyi +18 -0
- tnfr/validation/syntax.py +151 -0
- tnfr/validation/syntax.pyi +7 -0
- tnfr-6.0.0.dist-info/METADATA +135 -0
- tnfr-6.0.0.dist-info/RECORD +157 -0
- tnfr/cli.py +0 -322
- tnfr/config.py +0 -41
- tnfr/constants.py +0 -277
- tnfr/dynamics.py +0 -814
- tnfr/helpers.py +0 -264
- tnfr/main.py +0 -47
- tnfr/metrics.py +0 -597
- tnfr/operators.py +0 -525
- tnfr/program.py +0 -176
- tnfr/scenarios.py +0 -34
- tnfr/validators.py +0 -38
- tnfr-4.5.1.dist-info/METADATA +0 -221
- tnfr-4.5.1.dist-info/RECORD +0 -28
- {tnfr-4.5.1.dist-info → tnfr-6.0.0.dist-info}/WHEEL +0 -0
- {tnfr-4.5.1.dist-info → tnfr-6.0.0.dist-info}/entry_points.txt +0 -0
- {tnfr-4.5.1.dist-info → tnfr-6.0.0.dist-info}/licenses/LICENSE.md +0 -0
- {tnfr-4.5.1.dist-info → tnfr-6.0.0.dist-info}/top_level.txt +0 -0
tnfr/alias.pyi
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from collections.abc import Callable, Iterable, Mapping, MutableMapping
|
|
4
|
+
from types import ModuleType
|
|
5
|
+
from typing import TYPE_CHECKING, Any, Hashable, TypeVar
|
|
6
|
+
|
|
7
|
+
from .types import FloatArray, NodeId
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
import networkx as nx
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T")
|
|
13
|
+
|
|
14
|
+
__all__: list[str]
|
|
15
|
+
|
|
16
|
+
def __getattr__(name: str) -> Any: ...
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AbsMaxResult:
|
|
20
|
+
max_value: float
|
|
21
|
+
node: Hashable | None
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
SCALAR_SETTERS: dict[str, dict[str, Any]]
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def get_attr(
|
|
28
|
+
d: dict[str, Any],
|
|
29
|
+
aliases: Iterable[str],
|
|
30
|
+
default: T | None = ...,
|
|
31
|
+
*,
|
|
32
|
+
strict: bool = ...,
|
|
33
|
+
log_level: int | None = ...,
|
|
34
|
+
conv: Callable[[Any], T] = ...,
|
|
35
|
+
) -> T | None: ...
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def get_theta_attr(
|
|
39
|
+
d: Mapping[str, Any],
|
|
40
|
+
default: T | None = ...,
|
|
41
|
+
*,
|
|
42
|
+
strict: bool = ...,
|
|
43
|
+
log_level: int | None = ...,
|
|
44
|
+
conv: Callable[[Any], T] = ...,
|
|
45
|
+
) -> T | None: ...
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def collect_attr(
|
|
49
|
+
G: "nx.Graph",
|
|
50
|
+
nodes: Iterable[NodeId],
|
|
51
|
+
aliases: Iterable[str],
|
|
52
|
+
default: float = ...,
|
|
53
|
+
*,
|
|
54
|
+
np: ModuleType | None = ...,
|
|
55
|
+
) -> FloatArray | list[float]: ...
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def collect_theta_attr(
|
|
59
|
+
G: "nx.Graph",
|
|
60
|
+
nodes: Iterable[NodeId],
|
|
61
|
+
default: float = ...,
|
|
62
|
+
*,
|
|
63
|
+
np: ModuleType | None = ...,
|
|
64
|
+
) -> FloatArray | list[float]: ...
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def set_attr_generic(
|
|
68
|
+
d: dict[str, Any],
|
|
69
|
+
aliases: Iterable[str],
|
|
70
|
+
value: Any,
|
|
71
|
+
*,
|
|
72
|
+
conv: Callable[[Any], T],
|
|
73
|
+
) -> T: ...
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
def set_attr(
|
|
77
|
+
d: dict[str, Any], aliases: Iterable[str], value: Any, conv: Callable[[Any], T] = ...
|
|
78
|
+
) -> T: ...
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def get_attr_str(
|
|
82
|
+
d: dict[str, Any],
|
|
83
|
+
aliases: Iterable[str],
|
|
84
|
+
default: str | None = ...,
|
|
85
|
+
*,
|
|
86
|
+
strict: bool = ...,
|
|
87
|
+
log_level: int | None = ...,
|
|
88
|
+
conv: Callable[[Any], str] = ...,
|
|
89
|
+
) -> str | None: ...
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def set_attr_str(d: dict[str, Any], aliases: Iterable[str], value: Any) -> str: ...
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def set_theta_attr(d: MutableMapping[str, Any], value: Any) -> float: ...
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def multi_recompute_abs_max(
|
|
99
|
+
G: "nx.Graph", alias_map: Mapping[str, tuple[str, ...]]
|
|
100
|
+
) -> dict[str, float]: ...
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def set_attr_and_cache(
|
|
104
|
+
G: "nx.Graph",
|
|
105
|
+
n: Hashable,
|
|
106
|
+
aliases: tuple[str, ...],
|
|
107
|
+
value: float,
|
|
108
|
+
*,
|
|
109
|
+
cache: str | None = ...,
|
|
110
|
+
extra: Callable[["nx.Graph", Hashable, float], None] | None = ...,
|
|
111
|
+
) -> AbsMaxResult | None: ...
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
def set_attr_with_max(
|
|
115
|
+
G: "nx.Graph", n: Hashable, aliases: tuple[str, ...], value: float, *, cache: str
|
|
116
|
+
) -> AbsMaxResult: ...
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
def set_scalar(
|
|
120
|
+
G: "nx.Graph",
|
|
121
|
+
n: Hashable,
|
|
122
|
+
alias: tuple[str, ...],
|
|
123
|
+
value: float,
|
|
124
|
+
*,
|
|
125
|
+
cache: str | None = ...,
|
|
126
|
+
extra: Callable[["nx.Graph", Hashable, float], None] | None = ...,
|
|
127
|
+
) -> AbsMaxResult | None: ...
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
def set_vf(
|
|
131
|
+
G: "nx.Graph", n: Hashable, value: float, *, update_max: bool = ...
|
|
132
|
+
) -> AbsMaxResult | None: ...
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
def set_dnfr(G: "nx.Graph", n: Hashable, value: float) -> AbsMaxResult | None: ...
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def set_theta(
|
|
139
|
+
G: "nx.Graph", n: Hashable, value: float
|
|
140
|
+
) -> AbsMaxResult | None: ...
|