Skip to content

Commit

Permalink
rename result files from *.mfres.yaml to *.iesopt.result.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schwabeneder committed Jun 7, 2024
1 parent b98139b commit 0ef3ea4
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 =

Check warning on line 65 in src/results/jld2.jl

View check run for this annotation

Codecov / codecov/patch

src/results/jld2.jl#L65

Added line #L65 was not covered by tests
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

Check warning on line 84 in src/utils/packing.jl

View check run for this annotation

Codecov / codecov/patch

src/utils/packing.jl#L84

Added line #L84 was not covered by tests
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 0ef3ea4

Please sign in to comment.