From 5bd94bc3ec4687c7f8e79450d274d2376845d61e Mon Sep 17 00:00:00 2001 From: Bill Becker Date: Thu, 28 Sep 2023 15:07:33 -0600 Subject: [PATCH] Remove try-catch around GhpGhx.jl call --- src/core/scenario.jl | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/core/scenario.jl b/src/core/scenario.jl index 892086a82..a1aa25f47 100644 --- a/src/core/scenario.jl +++ b/src/core/scenario.jl @@ -540,20 +540,20 @@ function Scenario(d::Dict; flex_hvac_from_json=false) end ghpghx_results = Dict() - try - # Call GhpGhx.jl to size GHP and GHX - @info "Starting GhpGhx.jl" - # Call GhpGhx.jl to size GHP and GHX - results, inputs_params = GhpGhx.ghp_model(ghpghx_inputs) - # Create a dictionary of the results data needed for REopt - ghpghx_results = GhpGhx.get_results_for_reopt(results, inputs_params) - @info "GhpGhx.jl model solved" #with status $(results["status"])." - catch e - @info e - throw(@error("The GhpGhx package was not added (add https://github.com/NREL/GhpGhx.jl) or - loaded (using GhpGhx) to the active Julia environment, or an error occurred during the call - to the GhpGhx.jl package.")) - end + # try + # Call GhpGhx.jl to size GHP and GHX + @info "Starting GhpGhx.jl" + # Call GhpGhx.jl to size GHP and GHX + results, inputs_params = GhpGhx.ghp_model(ghpghx_inputs) + # Create a dictionary of the results data needed for REopt + ghpghx_results = GhpGhx.get_results_for_reopt(results, inputs_params) + @info "GhpGhx.jl model solved" #with status $(results["status"])." + # catch e + # @info e + # throw(@error("The GhpGhx package was not added (add https://github.com/NREL/GhpGhx.jl) or + # loaded (using GhpGhx) to the active Julia environment, or an error occurred during the call + # to the GhpGhx.jl package.")) + # end ghpghx_response = Dict([("inputs", ghpghx_inputs), ("outputs", ghpghx_results)]) ghp_inputs_removed_ghpghx_params = deepcopy(d["GHP"])