mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
SAP 10.2 Table 12a Grid 1 (PDF p.191): electric storage heater SAP code 408 is an "Integrated (storage + direct-acting) system" with a 0.20 space-heating high-rate fraction on a 7-hour tariff — NOT the 0.00 of "other storage heaters". `_table_12a_system_for_main` returned None for all storage codes (an explicit TODO), so code 408 fell back to the 100%-low-rate path and billed space heating at the bare 7-hour low rate (5.50 p/kWh) — under-costing → over-rating. Mapped cat-7 storage: 408 -> INTEGRATED_STORAGE_DIRECT (0.20), others -> OTHER_STORAGE_HEATERS (0.00, unchanged behaviour). The enum + fraction rows already existed; this only wires the dispatch, so the split flows self-consistently to both the §10a cost and the Appendix-M1 D_PV high-rate fraction. Corpus: sap408 over-raters +14.6/+12.9/+12.7 -> +7.1/+5.1/+3.4 (two crossed into within-0.5). Gauge 65.9% -> 66.1%, MAE 1.160 -> 1.128. Floor 0.63 -> 0.64 / MAE ceiling 1.22 -> 1.18. Worksheet harness 47/47 0 diverge. The residual +3..+7 is the "all other uses" 0.90 high-rate fraction (lighting/pumps/HW still billed 100%-low on the off-peak legacy path) — the next slice. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| applications | ||
| datatypes | ||
| domain | ||
| harness | ||
| infrastructure | ||
| magic_plan | ||
| orchestration | ||
| repositories | ||
| utilities | ||
| __init__.py | ||
| conftest.py | ||
| test_lambda_packaging.py | ||