Skip to content

Commit

Permalink
Avoid error if no state incentives found
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Becker committed Aug 23, 2023
1 parent 81e9b74 commit 1a3f922
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/reopt_multi_solutions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a3f922

Please sign in to comment.