adjusted % of roof covered with panels for buildings

This commit is contained in:
Khalim Conn-Kowlessar 2025-01-24 13:06:47 +00:00
parent fe193305e6
commit 8922fc7b8f

View file

@ -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")