Skip to content

Commit 8302241

Browse files
committed
Minor improvement
1 parent 574a309 commit 8302241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/DFGFactor.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Return `::Bool` on whether given factor `fc::Symbol` is a prior in factor graph
135135
"""
136136
function isPrior(dfg::G, fc::Symbol)::Bool where G <: AbstractDFG
137137
fco = getFactor(dfg, fc)
138-
getFactorType(fco) isa AbstractPrior
138+
getFactorType(fco) isa AbstractPrior || getFactorType(fco) isa FunctorSingleton
139139
end
140140

141141

0 commit comments

Comments
 (0)