Skip to content

Commit

Permalink
fix: leftover "component"
Browse files Browse the repository at this point in the history
  • Loading branch information
sstroemer committed Oct 11, 2024
1 parent e8661c9 commit 542c4e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IESopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -699,14 +699,14 @@ end
function _components_tagged(model::JuMP.Model, tag::String)
cnames = get(_iesopt(model).model.tags, tag, String[])
isempty(cnames) && return _CoreComponent[]
return component.(model, cnames)::Vector{<:_CoreComponent}
return get_component.(model, cnames)::Vector{<:_CoreComponent}
end

function _components_tagged(model::JuMP.Model, tags::Vector{String})
cnames = [get(_iesopt(model).model.tags, tag, String[]) for tag in tags]
cnames = intersect(cnames...)
isempty(cnames) && return _CoreComponent[]
return component.(model, cnames)::Vector{<:_CoreComponent}
return get_component.(model, cnames)::Vector{<:_CoreComponent}
end

function extract_result(model::JuMP.Model, component_name::String, field::String; mode::String)
Expand Down

0 comments on commit 542c4e2

Please sign in to comment.