mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Some SAP-Schema-17.x/18.0.0 certs lodge sap_openings width/height in MILLIMETRES mixed with metre rows in the same array (e.g. a 2025x2100 mm window beside a 3.06x1 m one). The 17.1 mapper read them all as metres → a 4.25M m2 window → HTC in the millions → SAP clamped to 1. Fix (TDD, datatypes/epc/domain/mapper.py): _sanitise_opening_dimension_m treats any dimension > 50 m as mm and divides by 1000; _sap_opening_area_m2 applies it to areas. Wired into the window, roof-window, and door-area-weighting paths. The 3 broken certs (uprn_10093117227 / 10090317693 / 10091636031) now score 90 / 81 / 79 instead of 1. 3 RED->GREEN slices + refactor; new test class TestFromSapSchema17_1OpeningUnitSanitisation + sap_17_1_mm_openings.json fixture; 0 new pyright errors; no regressions. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| elmhurst_dom | ||
| autonomous_run_findings.md | ||
| elmhurst_download.py | ||
| elmhurst_explore.py | ||
| elmhurst_fill.py | ||
| elmhurst_lib.py | ||
| elmhurst_README.md | ||
| elmhurst_session.py | ||
| full_sap_17_1_remapper_handoff.md | ||
| main.py | ||
| mapping_decisions.md | ||
| perimeter_decision.md | ||
| start_viewer.sh | ||