Skip to content

Commit c5743ab

Browse files
committed
Cascading the changes
1 parent 7c8bc5e commit c5743ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/LightDFG/services/LightDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function deleteVariable!(dfg::LightDFG, label::Symbol)#::Tuple{AbstractDFGVariab
146146
return variable, neigfacs
147147
end
148148

149-
function deleteFactor!(dfg::LightDFG, label::Symbol)::AbstractDFGFactor
149+
function deleteFactor!(dfg::LightDFG, label::Symbol; suppressGetFactor::Bool=false)::AbstractDFGFactor
150150
if !haskey(dfg.g.factors, label)
151151
error("Factor label '$(label)' does not exist in the factor graph")
152152
end

src/services/AbstractDFG.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ end
285285
$(SIGNATURES)
286286
Delete a DFGFactor from the DFG using its label.
287287
"""
288-
function deleteFactor!(dfg::G, label::Symbol) where G <: AbstractDFG
288+
function deleteFactor!(dfg::G, label::Symbol; suppressGetFactor::Bool=false) where G <: AbstractDFG
289289
error("deleteFactors not implemented for $(typeof(dfg))")
290290
end
291291

@@ -449,8 +449,8 @@ end
449449
$(SIGNATURES)
450450
Delete the referened DFGFactor from the DFG.
451451
"""
452-
function deleteFactor!(dfg::G, factor::F) where {G <: AbstractDFG, F <: AbstractDFGFactor}
453-
return deleteFactor!(dfg, factor.label)
452+
function deleteFactor!(dfg::G, factor::F; suppressGetFactor::Bool=false) where {G <: AbstractDFG, F <: AbstractDFGFactor}
453+
return deleteFactor!(dfg, factor.label, suppressGetFactor=suppressGetFactor)
454454
end
455455

456456
# Alias - bit ridiculous but know it'll come up at some point. Does existential and type check.

0 commit comments

Comments
 (0)