Skip to content

Commit

Permalink
Extract LCOE info
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Sahlberg authored and Andreas Sahlberg committed Dec 19, 2022
1 parent cbc435b commit bd5a27c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion onsset/onsset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2364,9 +2364,10 @@ def calc_summaries(self, df_summary, sumtechs, tech_codes, year, time_step, fina

i = 0

self.df['DemandLCOE' + '{}'.format(year)] = self.df[SET_ENERGY_PER_CELL + "{}".format(year)] * self.df[SET_MIN_OVERALL_LCOE + "{}".format(year)]
self.df['TotalCosts' + '{}'.format(year)] = self.df[SET_ENERGY_PER_CELL + "{}".format(year)] * self.df[SET_MIN_OVERALL_LCOE + "{}".format(year)] * (final_year - (year - time_step))

summaries = [SET_POP, SET_NEW_CONNECTIONS, SET_NEW_CAPACITY, SET_INVESTMENT_COST, 'TotalCosts']
summaries = [SET_POP, SET_NEW_CONNECTIONS, SET_NEW_CAPACITY, SET_INVESTMENT_COST, 'TotalCosts', SET_ENERGY_PER_CELL, 'DemandLCOE']

for s in summaries:
for t in tech_codes:
Expand Down
2 changes: 1 addition & 1 deletion onsset/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def scenario(specs_path, results_folder, summary_folder):
onsseter = SettlementProcessor(settlements_in_csv)
onsseter.df.fillna(1, inplace=True)

elements = ["1.Population", "2.New_Connections", "3.Capacity", "4.Investment", "5.Total_Costs"]
elements = ["1.Population", "2.New_Connections", "3.Capacity", "4.Investment", "5.Total_Costs", "6.Demand", "7.Demand_LCOE"]
techs = ["Grid", "SA_Diesel", "SA_PV", "MG_Diesel", "MG_PV", "MG_Wind", "MG_Hydro", "MG_PV_Hybrid", "MG_Wind_Hybrid"]
tech_codes = [1, 2, 3, 4, 5, 6, 7, 8, 9]

Expand Down

0 comments on commit bd5a27c

Please sign in to comment.