tnfr 3.0.0__py3-none-any.whl → 3.0.2__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.

Potentially problematic release.


This version of tnfr might be problematic. Click here for more details.

tnfr/__init__.py CHANGED
@@ -1,22 +1,47 @@
1
1
  from __future__ import annotations
2
-
3
2
  """
4
3
  TNFR — Teoría de la Naturaleza Fractal Resonante
5
- API canónica del paquete.
4
+ API pública del paquete.
6
5
 
7
- Principio operativo (ecuación nodal):
6
+ Ecuación nodal:
8
7
  ∂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
8
  """
14
9
 
15
- __version__ = "3.0.0"
10
+ __version__ = "3.0.2"
16
11
 
17
- # Re-exports de la API pública
18
- from .ontosim import preparar_red
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
19
43
  from .dynamics import step, run, set_delta_nfr_hook
44
+ from .ontosim import preparar_red
20
45
  from .observers import attach_standard_observer, coherencia_global, orden_kuramoto
21
46
 
22
47
  __all__ = [
@@ -25,24 +50,3 @@ __all__ = [
25
50
  "attach_standard_observer", "coherencia_global", "orden_kuramoto",
26
51
  "__version__",
27
52
  ]
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tnfr
3
- Version: 3.0.0
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,4 +1,4 @@
1
- tnfr/__init__.py,sha256=5djYn7YqfpOWrakVqJIBNqllDhTAe8xbo682SPC5rbc,1650
1
+ tnfr/__init__.py,sha256=RBQO7L4qQQWMK0S6S9j2Ev52U6GOH2iNTaH2d8o5Zj8,1798
2
2
  tnfr/constants.py,sha256=_775sPHussR9vgkWRCLC6dzwgk_1_lLnSlWT8sBWR3U,7677
3
3
  tnfr/dynamics.py,sha256=7B38c9SVKLVFBrKHeJ1nXbghoRHfDs8Nl9CqUmCcAyI,23260
4
4
  tnfr/helpers.py,sha256=tZJsDXc8k9HIfg8BA9cVUEFKBoX1Rfnuhurl2Fvxsy0,6017
@@ -6,8 +6,8 @@ tnfr/main.py,sha256=TEngteuC9MD7Ec9bNGuCC9ym-2ohbh202-HGArCR4tk,1506
6
6
  tnfr/observers.py,sha256=MoC-xLJuMP-UYj8cpIVlgSbXDsE1Uj70Zy51PSH3AJY,5192
7
7
  tnfr/ontosim.py,sha256=U0IeNVF8rFNhnmWWux91xDc0djTDZQkqRRosP6Z7FmE,5485
8
8
  tnfr/operators.py,sha256=M6ahJL8IuB2y4qiEalge5EufCz0eEbhw-O4xfh3NpwE,12146
9
- tnfr-3.0.0.dist-info/licenses/LICENSE.txt,sha256=xTjBNhy3N8pomFljrCkD1d34SmAEWv8hyJMMOjNMH0M,1071
10
- tnfr-3.0.0.dist-info/METADATA,sha256=RP4ob4z-WMs8TeNV58to9266xivZh3gq5kHYsJZ--G8,1325
11
- tnfr-3.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- tnfr-3.0.0.dist-info/top_level.txt,sha256=Q2HJnvc5Rt2VHwVvyBTnNPT4SfmJWnCj7XUxxEvQa7c,5
13
- tnfr-3.0.0.dist-info/RECORD,,
9
+ tnfr-3.0.2.dist-info/licenses/LICENSE.txt,sha256=xTjBNhy3N8pomFljrCkD1d34SmAEWv8hyJMMOjNMH0M,1071
10
+ tnfr-3.0.2.dist-info/METADATA,sha256=IjrYafbG2gRYW4LcsQMsKFG4VqT3zw-H5qHolXKuk3g,1325
11
+ tnfr-3.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ tnfr-3.0.2.dist-info/top_level.txt,sha256=Q2HJnvc5Rt2VHwVvyBTnNPT4SfmJWnCj7XUxxEvQa7c,5
13
+ tnfr-3.0.2.dist-info/RECORD,,
File without changes