mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Main heating system 2's space-heating fuel cost (worksheet (213)) was billed at main system 1's Table 32 unit price (`main_2_high_rate_gbp_per_kwh` reused `main_1_high_rate_gbp_per_kwh`). For a dual-FUEL pair this grossly mis-costs the second main: cert 10032957680 "Copse Cottage" (main 1 electric room heaters fuel 30, main 2 wood logs fuel 6) charged its 9481 kWh of wood at 13.19 p/kWh instead of 4.23 p/kWh — +£850/yr → SAP 21.75 vs lodged 45. Route main 2 through its own fuel code (`_main_fuel_code(details[1])`), mirroring the existing secondary-fuel handling. Copse Cottage 21.75 -> 45.94. Corpus within-0.5 holds 72.5%, SAP MAE 0.815 -> 0.793 (ratcheted ceiling 0.82 -> 0.80); CO2/PE unchanged. Same-fuel dual mains (gas+gas) unaffected. Off-peak-tariff dual-fuel mains still defer to the legacy scalar path (separate slice). Spec-cited unit pin added (AAA). pyright not installed locally — strict type gate not run. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| chatgpt | ||
| epc_client | ||
| magic_plan | ||
| postgres | ||
| solar | ||
| __init__.py | ||
| conftest.py | ||
| test_address2uprn_queue_client.py | ||
| test_csv_s3_client.py | ||
| test_s3_client.py | ||
| test_s3_uri.py | ||
| test_sqs_client.py | ||