Lodges `secondary_heating_type=691` (Electricity Electric Panel) on 000490 `build_epc()` to match the U985 worksheet's "Secondary Heating: Electricity Electric Panel, convector or radiant heaters, SAP Code 691, Efficiency 100%". Pre-fix the cert lodged no secondary system → `_secondary_fraction` returned 0.0 → all useful space heat routed to main 1 → main_fuel +1357 kWh over PDF, secondary -1118 under PDF, cost -£104 under PDF (-12.9% residual). Post-fix: Table 11 fraction 0.1000 for gas-combi category cascade fires → main 1 = 11491.89 kWh, secondary = 1126.21 kWh. Total cost £807.42 vs PDF £807.54 (Δ -£0.12, -0.015%). SAP integer 58 vs PDF 57 (delta 1, was 6); continuous 57.57 vs 57.40 (delta 0.18). E2E test updates: - New worksheet-level pin `result.secondary_heating_fuel_kwh_per_yr ≈ U985 (215) = 1118.3275` at abs=10 (loose — absorbs the +0.7% upstream useful space heating overshoot which propagates 1:1 to (215). Tightens to abs=1e-3 when the useful bias closes). - Per-fixture constant `LINE_215_SECONDARY_HEATING_FUEL_KWH = 1118.3275`. - 000490 SAP integer ceiling tightened 3 → 1; continuous 3.0 → 0.5. - Removed xfail on `test_elmhurst_000490_end_to_end_sap_score_currently_ within_3_points` and `test_000490_cert_to_inputs_fuel_cost_closes_to_ within_5pct` — both now pass. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .devcontainer | ||
| .github/workflows | ||
| .idea | ||
| .vscode | ||
| asset_list | ||
| backend | ||
| backlog | ||
| datatypes | ||
| docs | ||
| epr_data_exports | ||
| etl | ||
| infrastructure/terraform | ||
| model_data/requirements | ||
| packages | ||
| recommendations | ||
| scripts | ||
| services | ||
| sfr/principal_pitch | ||
| survey_report | ||
| utils | ||
| .coveragerc | ||
| .dockerignore | ||
| .gitignore | ||
| __init__.py | ||
| AGENTS.md | ||
| ara_backend_design.md | ||
| BaseUtility.py | ||
| CLAUDE.md | ||
| conftest.py | ||
| CONTEXT.md | ||
| devcontainer.sh | ||
| Dockerfile.test | ||
| Dockerfile.test.dockerignore | ||
| Makefile | ||
| MEMORY.md | ||
| package-lock.json | ||
| package.json | ||
| pyproject.toml | ||
| pyrightconfig.json | ||
| pytest.ini | ||
| README.md | ||
| run_backlog.sh | ||
| run_lambda_local.sh | ||
| serverless.yml | ||
| test.requirements.txt | ||
| tox.ini | ||
| UBIQUITOUS_LANGUAGE.md | ||
Model Repository
This repository contains the code pertaining to the development of the data science and machine learning products being utilised by Hestia.
The different folders in this repository relate to services that can be used independently, or can be imported and used as part of a larger application
Getting Started
Prerequisites
Dev Container Setup
This repo uses a Docker Compose-based dev container. The model-backend service joins a shared-dev Docker network so it can communicate with other local services (e.g. a frontend container) running on your machine.
VS Code users: The initializeCommand in devcontainer.json creates the shared-dev network automatically before the container starts. No manual step required — just open the repo and select Reopen in Container.
Non-VS Code / CI workflows: Run the following once before starting the container:
make dev-setup
This is idempotent and safe to re-run if the network already exists.
Folders
backend/
This folder contains the code for the fastapi backend service, which provides an interface to much of the functionality in this repository, for the frontend
model_data/
This folder contains related to the reading and preparation of assessment model data, including pulling out epc attributes
Testing
All tests can be run, against the configuration in pytest.ini running
pytest
This will run the complete panel of tests and report on coverage in the locations specified by the pytest.ini file.
To run tests in a specific service, e.g. inside of model_data, simply run
pytest --cov-config=model_data/.coveragerc --cov=model_data
This will produce the test results and coverage reports