From dba0b3f77fe9e2db77a404fec9e1ea810018f3bc Mon Sep 17 00:00:00 2001 From: jgavalda Date: Tue, 30 May 2023 08:31:57 -0400 Subject: [PATCH] Improved speed not repeating lcc function. Ready to comment with guille --- main.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 03e712d..eea396e 100644 --- a/main.py +++ b/main.py @@ -173,9 +173,13 @@ for retrofitting_scenario in retrofitting_scenarios: life_cycle_maintenance_costs, life_cycle_operational_incomes] - life_cycle_results.index = ['total_capital_costs_skin','total_capital_costs_systems','end_of_life_costs', - 'total_operational_costs','total_maintenance_costs','operational_incomes'] + life_cycle_results.index = [f'total_capital_costs_skin', + f'total_capital_costs_systems', f'end_of_life_costs', + f'total_operational_costs', f'total_maintenance_costs', + f'operational_incomes'] print(life_cycle_results) -#life_cycle_results.to_excel(Path(__file__).parent/'out_files'/f'Results{building.name}.xlsx', index=True) + +#todo: change if there is more than 1 building +life_cycle_results.to_excel(Path(__file__).parent/'out_files'/f'Results.xlsx', index=True)