diff --git a/src/results/jld2.jl b/src/results/jld2.jl index 83a992b..860767f 100644 --- a/src/results/jld2.jl +++ b/src/results/jld2.jl @@ -62,7 +62,8 @@ function _save_results(model::JuMP.Model) # TODO: support multiple results (from MOA) # Make sure the path is valid. - filepath = normpath(_iesopt_config(model).paths.results, "$(_iesopt_config(model).names.scenario).mfres.jld2") + filepath = + normpath(_iesopt_config(model).paths.results, "$(_iesopt_config(model).names.scenario).iesopt.result.jld2") mkpath(dirname(filepath)) # Write results. diff --git a/src/utils/packing.jl b/src/utils/packing.jl index 0d04da4..23c26bd 100644 --- a/src/utils/packing.jl +++ b/src/utils/packing.jl @@ -81,7 +81,7 @@ function pack(file::String; out::String="", method::Symbol=:auto, include_result elseif endswith(filename, ".iesopt.param.yaml") push!(files, relpath(normpath(root, filename), root_path)) push!(info["files"]["parameters"], relpath(normpath(root, filename), root_path)) - elseif endswith(filename, ".mfres.jld2") && include_results + elseif endswith(filename, ".iesopt.result.jld2") && include_results push!(files, relpath(normpath(root, filename), root_path)) push!(info["files"]["results"], relpath(normpath(root, filename), root_path)) else