Resolve every party-ceiling marker variant to its member 🟩

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-01 09:37:41 +00:00
parent 7f00ee69e1
commit 3aa5dfc45f

View file

@ -11,6 +11,12 @@ from domain.epc.property_overrides.roof_type import RoofType
# match the same marker.
_PARTY_CEILING_MARKERS: dict[str, RoofType] = {
"anotherdwellingabove": RoofType.ADJACENT_ANOTHER_DWELLING_ABOVE,
"samedwellingabove": RoofType.ADJACENT_SAME_DWELLING_ABOVE,
"otherpremisesabove": RoofType.ADJACENT_OTHER_PREMISES_ABOVE,
# Both the "(another premises above)" adjacency and the redundant "Another
# Premises Above" taxonomy member normalise here; map to the parenthesised
# family (both resolve to no overlay, so there is no scoring difference).
"anotherpremisesabove": RoofType.ADJACENT_ANOTHER_PREMISES_ABOVE,
}