Skip to content

Commit 35181de

Browse files
committed
getVariables from labels
1 parent 4edbe89 commit 35181de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/services/AbstractDFG.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ function getVariables(dfg::G, regexFilter::Union{Nothing, Regex}=nothing; tags::
308308
error("getVariables not implemented for $(typeof(dfg))")
309309
end
310310

311+
function getVariables(dfg::AbstractDFG, labels::Vector{Symbol})
312+
return map(label->getVariable(dfg, label), labels)
313+
end
314+
311315
"""
312316
$(SIGNATURES)
313317
List the DFGFactors in the DFG.

0 commit comments

Comments
 (0)