Model/applications/modelling_e2e
Jun-te Kim 1457275fb5 fix(modelling_e2e): ship the Historic EPC import closure in the Lambda image
test_lambda_image_copies_full_import_closure caught this: importing the Historic
EPC S3 repo drags datatypes/epc/domain/historic_epc_matching.py into the handler's
init-time closure, and that reaches back into the legacy address matcher —
backend/address2UPRN/scoring.py and utils/pandas_utils.py. The image COPYed
neither, so the Lambda would have died at cold start with Runtime.ImportModuleError.

Copied file-by-file rather than `COPY backend/ backend/`: backend/ is the whole
legacy engine and the closure needs only these seven files. Their third-party
deps (pandas, requests) are already in requirements.txt, so no new pip installs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 11:35:02 +00:00
..
local_handler Update trigger script and local invoker to use refetch_solar, refetch_epc, repredict_epc 🟩 2026-06-26 10:17:20 +00:00
Dockerfile fix(modelling_e2e): ship the Historic EPC import closure in the Lambda image 2026-07-14 11:35:02 +00:00
errors.py Fail unmodellable properties with a specific, debuggable error 🟥 2026-06-24 14:10:55 +00:00
handler.py feat(modelling_e2e): condition prediction on the expired Historic EPC (ADR-0054) 2026-07-14 11:15:39 +00:00
modelling_e2e_trigger_body.py An attach-mode batch models under the supplied sub_task without children 🟩 2026-07-07 11:53:26 +00:00
requirements.txt various fixes 2026-06-22 14:21:52 +00:00