Causal lab v2

This commit is contained in:
OpenSquared
2026-06-27 23:25:59 +02:00
parent 9ac3ebb4b5
commit a7f5369d7b
4 changed files with 1866 additions and 1315 deletions

View File

@@ -85,6 +85,15 @@ def startup():
from services.geo_analyzer import GEO_PATTERNS
from services.database import seed_builtin_patterns
seed_builtin_patterns(GEO_PATTERNS)
# Seed causal graph templates
try:
from services.database import get_conn as _get_conn
from services.causal_graphs import init_tables as _cg_init, seed_templates as _cg_seed
_cg_conn = _get_conn()
_cg_init(_cg_conn); _cg_seed(_cg_conn); _cg_conn.close()
_log.info("[Startup] Causal graph templates seeded")
except Exception as _e:
_log.warning(f"[Startup] Causal graph seed failed: {_e}")
# Auto-bootstrap désactivé — utiliser les boutons dans Cycle Actions / Timeline
# Start auto-cycle scheduler if enabled
from services.auto_cycle import start_scheduler