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> |
||
|---|---|---|
| .. | ||
| eon | ||
| hyde | ||
| analyse_api_sap_clusters.py | ||
| build_epc_prediction_fixture.py | ||
| compare_epc_paths.py | ||
| decompose_api_cost_error.py | ||
| decompose_co2_pe_error.py | ||
| download_cotality_evidence.py | ||
| elmhurst_input_sheet.py | ||
| eval_api_sap_accuracy.py | ||
| fetch_2026_epc_sample.py | ||
| fetch_cohort2_api_jsons.py | ||
| fetch_corpus_coordinates.py | ||
| fetch_epc_bulk_sample.py | ||
| fetch_epc_dump.py | ||
| fetch_epc_prediction_corpus.py | ||
| fetch_epc_prediction_dense_corpus.py | ||
| fetch_real_life_epc_sample.py | ||
| historic_epc_demo.py | ||
| init_db.py | ||
| profile_api_error.py | ||
| profile_case34.py | ||
| run_audit_generator_local.py | ||
| run_modelling_cohort.py | ||
| run_modelling_e2e.py | ||
| run_property_report.py | ||
| validate_epc_prediction.py | ||