mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Revives the local recommendation-inspection flow for specific Properties. `scripts/run_modelling_e2e.py` reads each Property's UPRN from the DB (read-only), fetches the latest EPC live from the gov EPC API by UPRN, runs the Modelling stage in memory (all Generators → Optimiser → costed, attributed Plan), and prints a per-Property plan table + writes a Markdown/CSV summary. Persists nothing — purely for inspection. The local DB's Properties have no linked ingested EPC (epc_property.property_id is NULL for all rows; Ingestion's source clients are stubbed, #1136), so the EPC must be fetched inline rather than read back. Builds the connection from the `DB_*` env vars in backend/.env and the EPC token from `EPC_AUTH_TOKEN`. Threads optional solar insights through harness `run_modelling` (so Solar PV Options can fire once coordinates are wired) and adds the `solar_pv` catalogue row. Solar + planning restrictions + DB persistence are noted follow-ups. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| cohort.py | ||
| console.py | ||
| epc_bulk.py | ||
| plan_table.py | ||
| report.py | ||
| sample_catalogue.json | ||