diff --git a/recommendations/SolarPvRecommendations.py b/recommendations/SolarPvRecommendations.py index ed5554dc..95f189d3 100644 --- a/recommendations/SolarPvRecommendations.py +++ b/recommendations/SolarPvRecommendations.py @@ -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")