Organize the project by domain and name analyses by their rule
Energy code moves to src/energy/ and its docs to docs/energy/; shared code (CSV loading, venv switch, browser, zoom script) goes to src/common/, and the AIMsight originals to docs/aimsight/. Analyses are no longer numbered: two Energy scripts remain, daily.py (delivered state and trend) and all_analyses.py (comparison of the four). Calculations and pages unchanged (D-026). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
77c8f24d2f
commit
8a32f4d418
44 files changed
+1757
-771
No files matched your search
@@ -1,5 +1,5 @@
|
||||
"""Maquette côté support « Home » : page d'accueil du site de monitoring (toutes les stations), avec en haut une section
|
||||
Status. Elle porte une notification par station dont le dernier jour de la fenêtre est Orange ou Red (src/day_color.py, D-020).
|
||||
Status. Elle porte une notification par station dont le dernier jour de la fenêtre est Orange ou Red (src/energy/day_color.py, D-020).
|
||||
|
||||
La notification, comme la vignette de la station, mène à la vue client de la station (son menu principal) :
|
||||
out/maquette_user_energy.html, écrite par maquettes/user/energy.py (à lancer avec les mêmes dates).
|
||||
@@ -14,9 +14,9 @@ from pathlib import Path
|
||||
HERE = Path(__file__).resolve().parent
|
||||
ROOT = HERE.parent.parent
|
||||
sys.path.insert(0, str(ROOT / "src"))
|
||||
from analyse_01 import open_html # noqa: E402
|
||||
import day_color as dc # noqa: E402
|
||||
import energy_check as ec # noqa: E402
|
||||
from common.page import open_html # noqa: E402
|
||||
from common.stations import load_stations # noqa: E402
|
||||
from energy import day_color as dc # noqa: E402
|
||||
|
||||
START = date.fromisoformat(sys.argv[1]) if len(sys.argv) > 1 else date(2026, 9, 18)
|
||||
END = date.fromisoformat(sys.argv[2]) if len(sys.argv) > 2 else date(2026, 9, 28)
|
||||
@@ -32,7 +32,7 @@ NAME = {"RED": "Red", "ORANGE": "Orange"} # couleurs notifiées, la plus grave
|
||||
HEADLINE = {"RED": "The station is not receiving enough energy.", # mêmes phrases que la vue client
|
||||
"ORANGE": "The station's energy supply is uncertain."}
|
||||
|
||||
series = ec.load_stations([str(ROOT / "data")])
|
||||
series = load_stations([str(ROOT / "data")])
|
||||
|
||||
|
||||
def spark(v):
|
||||
|
||||
Reference in new issue
Block a user