File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -477,18 +477,10 @@ function isInitialized(var::DFGVariable; key::Symbol=:default)::Bool
477
477
@error " Variable does not have solver data $(key) "
478
478
return false
479
479
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
490
481
end
491
482
end
483
+
492
484
function isInitialized (dfg:: G , label:: Symbol ; key:: Symbol = :default ):: Bool where G <: AbstractDFG
493
485
return isInitialized (getVariable (dfg, label), key= key)
494
486
end
You can’t perform that action at this time.
0 commit comments