From 0ef3ea49a23d4253158a4354575441f30328c6f3 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 7 Jun 2024 11:07:40 +0200 Subject: [PATCH] rename result files from *.mfres.yaml to *.iesopt.result.yaml --- src/results/jld2.jl | 3 ++- src/utils/packing.jl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/results/jld2.jl b/src/results/jld2.jl index 83a992b6..860767fd 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 0d04da42..23c26bd6 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