Improved speed not repeating lcc function. Ready to comment with guille

This commit is contained in:
Oriol Gavalda 2023-05-30 08:31:57 -04:00
parent 9f97e2b2f2
commit dba0b3f77f

10
main.py
View File

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