mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Map assessment_type on full-SAP certs 🟩
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
33f9988ac5
commit
304e8afb00
2 changed files with 3 additions and 0 deletions
|
|
@ -734,6 +734,7 @@ class EpcPropertyDataMapper:
|
|||
door_count, insulated_door_u = _sap_door_aggregates(schema)
|
||||
return EpcPropertyData(
|
||||
uprn=schema.uprn,
|
||||
assessment_type=schema.assessment_type,
|
||||
# SAP 2012 (~9.92) for this family — carried so CalculatorRebaseliner
|
||||
# fires trigger (a) (sap_version < 10.2 → Effective = the SAP-10.2
|
||||
# calc) instead of keeping the lodged SAP-2012 score (ADR-0037).
|
||||
|
|
|
|||
|
|
@ -213,6 +213,8 @@ class SapSchema17_1:
|
|||
# cert has no secondary. Read by the calculator's cert_to_inputs — dropping
|
||||
# it under-counts a real secondary heater (ADR-0037).
|
||||
secondary_heating: Optional[EnergyElement] = None
|
||||
# "SAP" for this family (vs "RdSAP"); carried for provenance / the panel.
|
||||
assessment_type: Optional[str] = None
|
||||
# measured living-room area (m²); the engine consumes it via a back-solved
|
||||
# habitable_rooms_count (Table 27). Optional — 100% present in the corpus.
|
||||
living_area: Optional[Union[int, float]] = None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue