Skip to content

Commit

Permalink
getVariables from labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Affie committed Jul 13, 2023
1 parent 4edbe89 commit 35181de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/AbstractDFG.jl
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ function getVariables(dfg::G, regexFilter::Union{Nothing, Regex}=nothing; tags::
error("getVariables not implemented for $(typeof(dfg))")
end

function getVariables(dfg::AbstractDFG, labels::Vector{Symbol})
return map(label->getVariable(dfg, label), labels)
end

"""
$(SIGNATURES)
List the DFGFactors in the DFG.
Expand Down

0 comments on commit 35181de

Please sign in to comment.