Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Strömer committed Nov 19, 2024
1 parent de5116b commit 22b5e91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config/config.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ function _prepare_config!(model::JuMP.Model)
@error "The `version.core` (v$(version_core)) entry in the configuration file is different from the current version of `IESopt.jl` (v$(current_version_core)), which might lead to unexpected behavior or errors"
end

unknown_sections = [k for k in keys(internal(model).input._tl_yaml["config"]) if !(k in ["general", "optimization", "files", "results", "paths"])]
unknown_sections = [
k for k in keys(internal(model).input._tl_yaml["config"]) if
!(k in ["general", "optimization", "files", "results", "paths"])
]
if !isempty(unknown_sections)
@error "Unknown configuration sections found in the configuration file: $(join(unknown_sections, ", "))"
end
Expand Down

0 comments on commit 22b5e91

Please sign in to comment.