tnfr 3.0.0__tar.gz → 3.0.1__tar.gz
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.
Potentially problematic release.
This version of tnfr might be problematic. Click here for more details.
- {tnfr-3.0.0 → tnfr-3.0.1}/PKG-INFO +1 -1
- {tnfr-3.0.0 → tnfr-3.0.1}/pyproject.toml +1 -1
- tnfr-3.0.1/src/tnfr/__init__.py +58 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr.egg-info/PKG-INFO +1 -1
- tnfr-3.0.0/src/tnfr/__init__.py +0 -48
- {tnfr-3.0.0 → tnfr-3.0.1}/LICENSE.txt +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/README.md +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/setup.cfg +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr/constants.py +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr/dynamics.py +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr/helpers.py +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr/main.py +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr/observers.py +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr/ontosim.py +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr/operators.py +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr.egg-info/SOURCES.txt +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr.egg-info/dependency_links.txt +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr.egg-info/requires.txt +0 -0
- {tnfr-3.0.0 → tnfr-3.0.1}/src/tnfr.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
"""
|
|
3
|
+
TNFR — Teoría de la Naturaleza Fractal Resonante
|
|
4
|
+
API pública del paquete.
|
|
5
|
+
|
|
6
|
+
Principio operativo (ecuación nodal):
|
|
7
|
+
∂EPI/∂t = νf · ΔNFR(t)
|
|
8
|
+
|
|
9
|
+
Re-exporta:
|
|
10
|
+
- preparar_red
|
|
11
|
+
- step, run, set_delta_nfr_hook
|
|
12
|
+
- attach_standard_observer, coherencia_global, orden_kuramoto
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
__version__ = "3.0.1"
|
|
16
|
+
|
|
17
|
+
# -------------------------------------------------------------------
|
|
18
|
+
# 1) Registrar alias ANTES de importar submódulos que usan imports
|
|
19
|
+
# absolutos (p.ej. `from constants import DEFAULTS`)
|
|
20
|
+
# -------------------------------------------------------------------
|
|
21
|
+
import sys as _sys
|
|
22
|
+
|
|
23
|
+
from . import constants as _constants
|
|
24
|
+
from . import helpers as _helpers
|
|
25
|
+
from . import operators as _operators
|
|
26
|
+
from . import observers as _observers
|
|
27
|
+
|
|
28
|
+
_sys.modules.setdefault("constants", _constants)
|
|
29
|
+
_sys.modules.setdefault("helpers", _helpers)
|
|
30
|
+
_sys.modules.setdefault("operators", _operators)
|
|
31
|
+
_sys.modules.setdefault("observers", _observers)
|
|
32
|
+
|
|
33
|
+
# -------------------------------------------------------------------
|
|
34
|
+
# 2) Ahora sí: importar módulos que dependen de esos alias
|
|
35
|
+
# -------------------------------------------------------------------
|
|
36
|
+
from .dynamics import step, run, set_delta_nfr_hook
|
|
37
|
+
from .ontosim import preparar_red
|
|
38
|
+
from .observers import attach_standard_observer, coherencia_global, orden_kuramoto
|
|
39
|
+
|
|
40
|
+
# (opcional) exponer también alias para `dynamics` y `ontosim`
|
|
41
|
+
# si algún código externo hace `from dynamics import run`, etc.
|
|
42
|
+
import types as _types
|
|
43
|
+
import importlib as _importlib
|
|
44
|
+
|
|
45
|
+
_dynamics_mod = _importlib.import_module(__name__ + ".dynamics")
|
|
46
|
+
_ontosim_mod = _importlib.import_module(__name__ + ".ontosim")
|
|
47
|
+
_sys.modules.setdefault("dynamics", _dynamics_mod)
|
|
48
|
+
_sys.modules.setdefault("ontosim", _ontosim_mod)
|
|
49
|
+
|
|
50
|
+
# -------------------------------------------------------------------
|
|
51
|
+
# 3) API pública
|
|
52
|
+
# -------------------------------------------------------------------
|
|
53
|
+
__all__ = [
|
|
54
|
+
"preparar_red",
|
|
55
|
+
"step", "run", "set_delta_nfr_hook",
|
|
56
|
+
"attach_standard_observer", "coherencia_global", "orden_kuramoto",
|
|
57
|
+
"__version__",
|
|
58
|
+
]
|
tnfr-3.0.0/src/tnfr/__init__.py
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
"""
|
|
4
|
-
TNFR — Teoría de la Naturaleza Fractal Resonante
|
|
5
|
-
API canónica del paquete.
|
|
6
|
-
|
|
7
|
-
Principio operativo (ecuación nodal):
|
|
8
|
-
∂EPI/∂t = νf · ΔNFR(t)
|
|
9
|
-
|
|
10
|
-
Este paquete expone utilidades para preparar una red (preparar_red),
|
|
11
|
-
ejecutar la dinámica (step, run) y observar coherencia (coherencia_global,
|
|
12
|
-
orden_kuramoto), alineado con la TNFR.
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
__version__ = "3.0.0"
|
|
16
|
-
|
|
17
|
-
# Re-exports de la API pública
|
|
18
|
-
from .ontosim import preparar_red
|
|
19
|
-
from .dynamics import step, run, set_delta_nfr_hook
|
|
20
|
-
from .observers import attach_standard_observer, coherencia_global, orden_kuramoto
|
|
21
|
-
|
|
22
|
-
__all__ = [
|
|
23
|
-
"preparar_red",
|
|
24
|
-
"step", "run", "set_delta_nfr_hook",
|
|
25
|
-
"attach_standard_observer", "coherencia_global", "orden_kuramoto",
|
|
26
|
-
"__version__",
|
|
27
|
-
]
|
|
28
|
-
|
|
29
|
-
# --- Adaptador de imports internos (compatibilidad sin tocar tus módulos) ---
|
|
30
|
-
# Varios archivos del paquete usan imports absolutos como:
|
|
31
|
-
# from constants import DEFAULTS
|
|
32
|
-
# en lugar de imports relativos:
|
|
33
|
-
# from .constants import DEFAULTS
|
|
34
|
-
# Para no reescribirlos, registramos alias en sys.modules.
|
|
35
|
-
import sys as _sys
|
|
36
|
-
from . import constants as _constants
|
|
37
|
-
from . import helpers as _helpers
|
|
38
|
-
from . import observers as _observers
|
|
39
|
-
from . import dynamics as _dynamics
|
|
40
|
-
from . import operators as _operators
|
|
41
|
-
from . import ontosim as _ontosim
|
|
42
|
-
|
|
43
|
-
_sys.modules.setdefault("constants", _constants)
|
|
44
|
-
_sys.modules.setdefault("helpers", _helpers)
|
|
45
|
-
_sys.modules.setdefault("observers", _observers)
|
|
46
|
-
_sys.modules.setdefault("dynamics", _dynamics)
|
|
47
|
-
_sys.modules.setdefault("operators", _operators)
|
|
48
|
-
_sys.modules.setdefault("ontosim", _ontosim)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|