Skip to content

Commit

Permalink
Merge pull request #5 from daschw/result-name
Browse files Browse the repository at this point in the history
fix: rename result files from `*.mfres.yaml` to `*.iesopt.result.yaml`
  • Loading branch information
sstroemer authored Jun 7, 2024
2 parents 083e5e8 + 0ef3ea4 commit ec9acdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/results/jld2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/utils/packing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec9acdb

Please sign in to comment.