From a7d81b840bd1260447a4911227b2e9ff24647baf Mon Sep 17 00:00:00 2001 From: trevorb1 Date: Wed, 4 Dec 2024 13:38:15 -0800 Subject: [PATCH] add capacity activity --- workflow/scripts/osemosys_global/powerplant/backstop.py | 9 ++++++++- workflow/scripts/osemosys_global/powerplant/main.py | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/workflow/scripts/osemosys_global/powerplant/backstop.py b/workflow/scripts/osemosys_global/powerplant/backstop.py index 15836c6..8455a47 100644 --- a/workflow/scripts/osemosys_global/powerplant/backstop.py +++ b/workflow/scripts/osemosys_global/powerplant/backstop.py @@ -12,6 +12,7 @@ def get_backstop_data( - OAR - Capital Cost - Fixed Cost + - CapacityToActivity """ df = tech_set.copy() @@ -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 diff --git a/workflow/scripts/osemosys_global/powerplant/main.py b/workflow/scripts/osemosys_global/powerplant/main.py index 135f0fc..2e0ff86 100644 --- a/workflow/scripts/osemosys_global/powerplant/main.py +++ b/workflow/scripts/osemosys_global/powerplant/main.py @@ -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