mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
`_map_sap_window` copied the raw `glazing_type` survey label; the calculator's isinstance-int guards read it as non-int and fell to the double-pre-2002 U=2.8 default for every window — over-counting heat loss on the ~852 windows the survey dates to 2002-2021 (RdSAP Table 24 U=2.0). Add `_pashub_glazing_type_int` mapping the surveyed labels to the SAP10 cascade glazing codes the calculator reads for window U (`_GLAZING_CODE_TO_UWINDOW`) and solar g (`_G_PERPENDICULAR_BY_GLAZING_TYPE`): before 2002 -> 3, 2002-2021 -> 2, unknown install date -> 3 (pre-2002 default), post-2022 -> 13. Strict-raises `UnmappedPasHubLabel` on an unknown label; blank passes through as "". Completes the fabric stack (party-wall/wall-construction/insulation/glazing): cohort MAE 2.79 -> 2.66, within-0.5 11.4% -> 12.9%, signed -0.04 -> +0.33. Closes #1562 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| epc | ||
| __init__.py | ||
| address_match.py | ||
| datatypes.py | ||
| enums.py | ||