From 67c4d1bdf10ca49d02bd06ab7e4c2fe63326a0a6 Mon Sep 17 00:00:00 2001 From: lbonaldo Date: Mon, 11 Mar 2024 15:29:28 -0400 Subject: [PATCH] Fix ret_cap_charge in load_resources --- src/load_inputs/load_resources_data.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load_inputs/load_resources_data.jl b/src/load_inputs/load_resources_data.jl index 57bfebd697..58fb7896c9 100644 --- a/src/load_inputs/load_resources_data.jl +++ b/src/load_inputs/load_resources_data.jl @@ -1008,7 +1008,7 @@ function add_resources_to_input_data!(inputs::Dict, setup::Dict, case_path::Abst # Set of asymmetric charge/discharge storage resources eligible for new charge capacity new_cap_charge = intersect(buildable, ids_with(gen, max_charge_cap_mw), inputs["STOR_ASYMMETRIC"]) # Set of asymmetric charge/discharge storage resources eligible for charge capacity retirements - ret_cap_charge = intersect(buildable, ids_with_nonneg(gen, existing_charge_cap_mw), inputs["STOR_ASYMMETRIC"]) + ret_cap_charge = intersect(retirable, ids_with_nonneg(gen, existing_charge_cap_mw), inputs["STOR_ASYMMETRIC"]) end inputs["NEW_CAP_CHARGE"] = new_cap_charge inputs["RET_CAP_CHARGE"] = ret_cap_charge