Sync with cerc hub and overall code improvements

This commit is contained in:
Guille 2024-03-18 12:35:10 +01:00
parent 6e5441e9d2
commit 56538e803b

View File

@ -50,7 +50,9 @@ class CityObject(Models):
self.volume = building.volume
self.area = building.floor_area
self.roof_area = sum(roof.solid_polygon.area for roof in building.roofs)
self.total_pv_area = sum(roof.solid_polygon.area * roof.solar_collectors_area_reduction_factor for roof in building.roofs)
self.total_pv_area = sum(
roof.solid_polygon.area * roof.solar_collectors_area_reduction_factor for roof in building.roofs
)
storeys = building.storeys_above_ground
wall_area = 0
window_ratio = 0