checking costs

This commit is contained in:
Khalim Conn-Kowlessar 2024-08-05 16:51:37 +01:00
parent 92fcd080a8
commit c9d733d76e
2 changed files with 5 additions and 11 deletions

View file

@ -737,17 +737,6 @@ async def trigger_plan(body: PlanTriggerRequest):
]
recommendations[property_id] = final_recommendations
# df = []
# for rec in recommendations[list(recommendations.keys())[0]]:
# df.append(
# {
# "id": rec["recommendation_id"],
# "description": rec["description"],
# "sap": rec["sap_points"],
# }
# )
# df = pd.DataFrame(df)
# 1) the property data
# 2) the property details (epc)
# 3) the recommendations

View file

@ -152,6 +152,11 @@ def make_asset_list():
cost_testing["ewi_cost_per_m2"] = cost_testing["Insulation - External Wall - Total"] / cost_testing[
"Wall Area [m^2]"]
cost_testing["li_cost_per_m2"] = cost_testing["Insulation - Loft - Total"] / cost_testing["Building Area [m^2]"]
cost_testing["underfloor_cost_per_m2"] = cost_testing["Insulation - Under Floor- Total"] / cost_testing[
"Building Area [m^2]"]
final_asset_list = asset_list.rename(
columns={"UPRN": "uprn", "address1": "address", "floor_area": "insulation_floor_area"}
)[["uprn", "address", "postcode", "insulation_wall_area", "insulation_floor_area", "number_of_floors"]]