From e12ff81aaa350eaaa96f28814203f486f80a75ec Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 9 Jul 2024 23:24:40 +0100 Subject: [PATCH] added labour hours and days to building level costing for solar --- recommendations/Costs.py | 4 ++-- recommendations/SolarPvRecommendations.py | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/recommendations/Costs.py b/recommendations/Costs.py index 68870841..9a12af42 100644 --- a/recommendations/Costs.py +++ b/recommendations/Costs.py @@ -1037,13 +1037,13 @@ class Costs: vat = total_cost - subtotal_before_vat # Labour hours are based on estimates from online research but an average team seems to consist of 3 people - # and most jobs take around 2 days. Assuming an 8 hour day for 3 people across 2 days, gives us 72 hours of + # and most jobs take around 2 days. Assuming an 8 hour day for 3 people across 2 days, gives us 48 hours of # labour return { "total": total_cost, "subtotal": subtotal_before_vat, "vat": vat, - "labour_hours": 72, + "labour_hours": 48, "labour_days": 2, } diff --git a/recommendations/SolarPvRecommendations.py b/recommendations/SolarPvRecommendations.py index 596b9290..5219e323 100644 --- a/recommendations/SolarPvRecommendations.py +++ b/recommendations/SolarPvRecommendations.py @@ -116,6 +116,9 @@ class SolarPvRecommendations: # Spread the cost to the individual units - adding a 20% contingency total_cost = recommendation_config["total_cost"] / n_units kw = np.floor(recommendation_config["array_warrage"] / 100) / 10 + # Default to a weeks work for a team of 3 people doing 8 hour days + labour_days = 5 + labour_hours = 3 * 8 * labour_days description = (f"Install a {kw} kilowatt-peak (kWp) solar photovoltaic (PV) panel system on the roof " "of the building") @@ -133,6 +136,8 @@ class SolarPvRecommendations: "sap_points": None, "already_installed": False, "total": total_cost, + "labour_days": labour_days, + "labour_hours": labour_hours, # This is required for simulating the SAP impact. solar_pv_percentage is between 0 & 1 so we scale # back up here "photo_supply": roof_coverage_percent,