Resolve a landlord gas-combi heating override to its SAP code 🟩

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jun-te Kim 2026-06-19 14:05:14 +00:00
parent 21afbefa9d
commit d6bde062ed

View file

@ -19,10 +19,21 @@ from __future__ import annotations
from typing import Optional
from domain.modelling.simulation import EpcSimulation
from domain.modelling.simulation import EpcSimulation, HeatingOverlay
# Canonical system archetype → representative `sap_main_heating_code` (SAP Table
# 4b boiler rows / Table 4a). Codes map to the modern/condensing variant (A-G
# efficiency deferred): 102 regular condensing, 104 condensing combi, 120 CPSU,
# 404 fan storage heaters, 191 direct-acting electric boiler.
_MAIN_HEATING_CODES: dict[str, int] = {
"Gas boiler, combi": 104,
}
def main_heating_overlay_for(
main_heating_value: str, building_part: int
) -> Optional[EpcSimulation]:
raise NotImplementedError
code = _MAIN_HEATING_CODES.get(main_heating_value)
if code is None:
return None
return EpcSimulation(heating=HeatingOverlay(sap_main_heating_code=code))