Skip to content

Commit

Permalink
storage max cap filter fix v2
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbrinkerink committed Nov 29, 2024
1 parent bbd8f7a commit 3907a79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def cap_investment_constraints_sto(storage_set, df_max_cap_invest_base,
df_max_cap_invest_sto = pd.concat([df_max_cap_invest_sto, data], join = 'inner')

df_max_cap_invest_sto = apply_dtypes(df_max_cap_invest_sto, "TotalAnnualMaxCapacityInvestment")

# filter for storages defined in config
df_max_cap_invest_sto = df_max_cap_invest_sto[df_max_cap_invest_sto.TECHNOLOGY.isin(storage_set.VALUE)]
df_max_cap_invest_sto = df_max_cap_invest_sto[df_max_cap_invest_sto.TECHNOLOGY.isin('PWR' + storage_set.VALUE)]

# Add to existing TotalAnnualMaxCapacityInvestment data
if not df_max_cap_invest_sto.empty:
Expand Down

0 comments on commit 3907a79

Please sign in to comment.