tnfr 3.0.1__tar.gz → 3.0.2__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tnfr
3
- Version: 3.0.1
3
+ Version: 3.0.2
4
4
  Summary: TNFR canónica: dinámica glífica modular sobre redes.
5
5
  Author: Fer
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tnfr"
3
- version = "3.0.1"
3
+ version = "3.0.2"
4
4
  description = "TNFR canónica: dinámica glífica modular sobre redes."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
@@ -0,0 +1,52 @@
1
+ from __future__ import annotations
2
+ """
3
+ TNFR — Teoría de la Naturaleza Fractal Resonante
4
+ API pública del paquete.
5
+
6
+ Ecuación nodal:
7
+ ∂EPI/∂t = νf · ΔNFR(t)
8
+ """
9
+
10
+ __version__ = "3.0.2"
11
+
12
+ # -------------------------------------------------------------------
13
+ # 1) Registrar alias en sys.modules ANTES de cargar submódulos que
14
+ # hacen imports absolutos (p.ej. `from constants import ...`).
15
+ # Orden: constants -> helpers -> operators -> observers
16
+ # Luego: dynamics / ontosim (que dependen de los anteriores)
17
+ # -------------------------------------------------------------------
18
+ import sys as _sys
19
+
20
+ # 1.a constants (no depende de helpers/otros)
21
+ from . import constants as _constants
22
+ _sys.modules.setdefault("constants", _constants)
23
+
24
+ # 1.b helpers (usa: from constants import ...)
25
+ from . import helpers as _helpers
26
+ _sys.modules.setdefault("helpers", _helpers)
27
+
28
+ # 1.c operators (usa: from constants/helpers import ...)
29
+ from . import operators as _operators
30
+ _sys.modules.setdefault("operators", _operators)
31
+
32
+ # 1.d observers (usa: from constants/helpers import ...)
33
+ from . import observers as _observers
34
+ _sys.modules.setdefault("observers", _observers)
35
+
36
+ # 2) dynamics / ontosim (ya con alias creados)
37
+ from . import dynamics as _dynamics
38
+ from . import ontosim as _ontosim
39
+ _sys.modules.setdefault("dynamics", _dynamics)
40
+ _sys.modules.setdefault("ontosim", _ontosim)
41
+
42
+ # 3) Re-exports de la API pública
43
+ from .dynamics import step, run, set_delta_nfr_hook
44
+ from .ontosim import preparar_red
45
+ from .observers import attach_standard_observer, coherencia_global, orden_kuramoto
46
+
47
+ __all__ = [
48
+ "preparar_red",
49
+ "step", "run", "set_delta_nfr_hook",
50
+ "attach_standard_observer", "coherencia_global", "orden_kuramoto",
51
+ "__version__",
52
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tnfr
3
- Version: 3.0.1
3
+ Version: 3.0.2
4
4
  Summary: TNFR canónica: dinámica glífica modular sobre redes.
5
5
  Author: Fer
6
6
  License: MIT
@@ -1,58 +0,0 @@
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
- ]
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