mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
adjusted % of roof covered with panels for buildings
This commit is contained in:
parent
fe193305e6
commit
8922fc7b8f
1 changed files with 4 additions and 1 deletions
|
|
@ -103,7 +103,10 @@ class SolarPvRecommendations:
|
|||
for rank, recommendation_config in best_configurations.iterrows():
|
||||
# If we dont have the panneled_roof_area in the recommendation_config we calculate it
|
||||
if recommendation_config.get("panneled_roof_area", None):
|
||||
roof_coverage_percent = round(recommendation_config["panneled_roof_area"] / total_roof_area * 100)
|
||||
# We spread the coverage across the individual units
|
||||
roof_coverage_percent = round(
|
||||
((recommendation_config["panneled_roof_area"] / total_roof_area) * 100) / n_units
|
||||
)
|
||||
else:
|
||||
raise Exception("IMPLEMENT ME")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue