mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fix bug in cleaning floor height
This commit is contained in:
parent
0b12e59d7f
commit
c502fd8370
1 changed files with 2 additions and 2 deletions
|
|
@ -506,7 +506,7 @@ class Property(Definitions):
|
|||
if self.data["built-form"] not in self.DATA_ANOMALY_MATCHES:
|
||||
result = result[(result["BUILT_FORM"] == self.data["built-form"])]
|
||||
|
||||
return result[["NUMBER_HABITABLE_ROOMS", "TOTAL_FLOOR_AREA"]].mean()
|
||||
return result[["NUMBER_HABITABLE_ROOMS", "TOTAL_FLOOR_AREA", "FLOOR_HEIGHT"]].mean()
|
||||
|
||||
def set_basic_property_dimensions(self):
|
||||
"""
|
||||
|
|
@ -544,7 +544,7 @@ class Property(Definitions):
|
|||
raise NotImplementedError("Implement me")
|
||||
|
||||
if self.data["floor-height"] == "" or self.data["floor-height"] in self.DATA_ANOMALY_MATCHES:
|
||||
self.floor_height = float(self.property_dimensions["FLOOR_HEIGHT"].round())
|
||||
self.floor_height = float(self.property_dimensions["FLOOR_HEIGHT"].round(2))
|
||||
else:
|
||||
self.floor_height = float(self.data["floor-height"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue