mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
A FLAT roof lodges its insulation thickness in the DEDICATED gov-EPC API `flat_roof_insulation_thickness` field (e.g. "75mm"), leaving `roof_insulation_thickness` None (that field is for pitched-loft joists). `heat_transmission_from_cert` read only the latter, so a measured flat-roof thickness was ignored and the roof billed at the uninsulated age-band flat default (age E = 1.5) instead of its Table-16 insulated U. Fixed by preferring `flat_roof_insulation_thickness` when the part is a flat roof — the exact mirror of the existing rafter-thickness branch. An "AB"/"NI" (as-built/unknown) value parses to None and keeps the age-band default, unchanged; only measured thicknesses move. PER-CERT ELMHURST VALIDATION (cert 47084930, top-floor flat, flat roof 75 mm): built on the lodged inputs in accredited Elmhurst RdSAP10-Online (evidence saved: elmhurst_summary.pdf / elmhurst_worksheet.pdf). The worksheet bills "insulated flat roof" at U 0.5 (floor 0.70 + wall 0.25 also matching the engine). The fix takes the engine roof 96.4 -> 32.1 W/K (= 64.26 x 0.5, Elmhurst-exact), PE +47 -> +0.2, SAP 69.51 -> 74.34 = lodged 74. Gauge: within 77.3% -> 77.7%, SAP MAE 0.648 -> 0.641, CO2 0.074 -> 0.072, PE 3.1 -> 2.97. Unit-pinned in test_heat_transmission (flat_roof_insulation_thickness -> U 0.5); RealCertExpectation 47084930 = 74 (Elmhurst-validated). Also adds the build script build_47084930.py. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| applications | ||
| datatypes | ||
| domain | ||
| e2e | ||
| fixtures/epc_prediction | ||
| harness | ||
| infrastructure | ||
| lambdas | ||
| magic_plan | ||
| orchestration | ||
| repositories | ||
| scripts | ||
| utilities | ||
| __init__.py | ||
| conftest.py | ||
| test_lambda_packaging.py | ||