added cleaning step for missing built-form

This commit is contained in:
Khalim Conn-Kowlessar 2023-12-15 13:35:39 +00:00
parent 538e38dc1e
commit 7f8c185bca

View file

@ -275,6 +275,10 @@ class Property(Definitions):
# We need to implement an EPC cleaning process, which we run on the EPC data, immediately after we download
# it
self.data["built-form"] = BUILT_FORM_REMAP.get(self.data["built-form"], self.data["built-form"])
if self.data["built-form"] in self.DATA_ANOMALY_MATCHES:
if self.data["property-type"] == "Flat":
self.data["built-form"] = "Semi-Detached"
self.set_energy()
self.set_ventilation()
self.set_solar_pv()