mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
handle edge case of a detatched maisonnete
This commit is contained in:
parent
f7cd9d0d10
commit
de10fe7e6d
1 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ def app():
|
|||
# Perform the same remapping for built-form as in the Property class for this test, in case we get (e.g.)
|
||||
# Enclosed End-Terrace
|
||||
built_form = BUILT_FORM_REMAP.get(epc["built-form"], epc["built-form"])
|
||||
if (epc["property-type"] == "Maisonette") & (built_form == "Detached"):
|
||||
built_form = ""
|
||||
|
||||
estimated_epc = searcher.estimate_epc(
|
||||
property_type=epc["property-type"], built_form=built_form, lmks_to_drop=lmks_to_drop
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue