mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
An electric room/panel-heater dwelling (main SAP code 691) on a Dual meter is a 10-hour tariff by RdSAP 10 §12 Rule 3, so its main heating bills the secondary's identical electricity at a 0.50-blended 11.09 p/kWh. Its SECONDARY heating, however, resolved its tariff from the bare meter string — where a Dual meter defaults to 7-hour (`tariff_from_meter_type`) — and billed at the 7-hour all-high-rate 15.29 p/kWh. The ~10% secondary fraction was over-priced by ~4 p/kWh, under-rating SAP by ~1 point across the LRHA WAVE 3 code-691 cohort. Route the dwelling's resolved `_rdsap_tariff(epc)` into `_secondary_fuel_cost_gbp_ per_kwh` / `_secondary_off_peak_rate_gbp_per_kwh`, exactly as the main-heating cost path (`_space_heating_fuel_cost_gbp_per_kwh`) and the secondary CO2 path (`_secondary_heating_co2_factor_kg_per_kwh`) already do — removing the internal meter-only resolution that diverged from the dwelling's single §12 tariff. Storage-heater dwellings (7-hour by §12) are unchanged — their secondary correctly stays at 15.29 p (regression-pinned in test_cert_to_inputs). LRHA WAVE 3 within-0.5 49.5% → 52.4%, MAE 0.977; gov-API, Elmhurst RealCert, Guinness and Wythenshawe corpora unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| __init__.py | ||
| test_elmhurst_end_to_end.py | ||
| test_elmhurst_extractor.py | ||
| test_end_to_end.py | ||
| test_extractor.py | ||
| test_heating_systems_corpus.py | ||
| test_pashub_sap_accuracy.py | ||
| test_pashub_sap_accuracy_lrha_wave3.py | ||
| test_pashub_sap_accuracy_wythenshawe.py | ||
| test_pdf.py | ||
| test_room_heater_worksheet_001431.py | ||
| test_summary_pdf_mapper_chain.py | ||