Skip to content

Commit 4d75d0e

Browse files
committed
DFGFactor does not seem to have initialized
1 parent 91018a7 commit 4d75d0e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/services/AbstractDFG.jl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -477,18 +477,10 @@ function isInitialized(var::DFGVariable; key::Symbol=:default)::Bool
477477
@error "Variable does not have solver data $(key)"
478478
return false
479479
else
480-
return solverData(var, key).initialized
481-
end
482-
end
483-
function isInitialized(fct::DFGFactor; key::Symbol=:default)::Bool
484-
data = solverData(var, key)
485-
if data == nothing
486-
@error "Factor does not have solver data $(key)"
487-
return false
488-
else
489-
return solverData(fct, key).initialized
480+
return data.initialized
490481
end
491482
end
483+
492484
function isInitialized(dfg::G, label::Symbol; key::Symbol=:default)::Bool where G <: AbstractDFG
493485
return isInitialized(getVariable(dfg, label), key=key)
494486
end

0 commit comments

Comments
 (0)