Skip to content

Commit

Permalink
add capacity activity
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorb1 committed Dec 4, 2024
1 parent d4f3cbc commit a7d81b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion workflow/scripts/osemosys_global/powerplant/backstop.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def get_backstop_data(
- OAR
- Capital Cost
- Fixed Cost
- CapacityToActivity
"""

df = tech_set.copy()
Expand Down Expand Up @@ -56,4 +57,10 @@ def get_backstop_data(
opex["VALUE"] = 999999
opex = opex[["REGION", "TECHNOLOGY", "YEAR", "VALUE"]]

return techs, oar, capex, opex
# capacity to activity
capact = pd.DataFrame(index=pd.Index(bck_techs, name="TECHNOLOGY")).reset_index()
capact["REGION"] = region
capact["VALUE"] = 31.536
capact = capact[["REGION", "TECHNOLOGY", "VALUE"]]

return techs, oar, capex, opex, capact
3 changes: 2 additions & 1 deletion workflow/scripts/osemosys_global/powerplant/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,12 @@ def main(
region_name)

# add backstop technologies
bck_techs, bck_oar, bck_capex, bck_opex = get_backstop_data(tech_set, years_set, region_name)
bck_techs, bck_oar, bck_capex, bck_opex, bck_capact = get_backstop_data(tech_set, years_set, region_name)
tech_set = pd.concat([tech_set, bck_techs])
df_oar_final = pd.concat([df_oar_final, bck_oar])
df_cap_cost_final = pd.concat([df_cap_cost_final, bck_capex])
df_fix_cost_final = pd.concat([df_fix_cost_final, bck_opex])
df_capact_final = pd.concat([df_capact_final, bck_capact])

# OUTPUT CSV's USED AS INPUT FOR TRANSMISSION RULE

Expand Down

0 comments on commit a7d81b8

Please sign in to comment.