From 1a3f922f66a321e56e89b1a888e86fe86bf5ae24 Mon Sep 17 00:00:00 2001 From: Bill Becker Date: Tue, 22 Aug 2023 22:43:23 -0600 Subject: [PATCH] Avoid error if no state incentives found --- src/core/reopt_multi_solutions.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/reopt_multi_solutions.jl b/src/core/reopt_multi_solutions.jl index c786a5fc7..eb46c3e11 100644 --- a/src/core/reopt_multi_solutions.jl +++ b/src/core/reopt_multi_solutions.jl @@ -45,7 +45,9 @@ function run_reopt_multi_solutions(fp::String, size_scale::Union{Vector{Any},Vec best_incentives = scenario end end - input_data = reopt_inputs_scenarios[best_incentives] + if !isempty(best_incentives) + input_data = reopt_inputs_scenarios[best_incentives] + end end # Create optimal and BAU inputs structs for initial 2 runs