@@ -738,9 +738,9 @@ function factorCanInitFromOtherVars(dfg::AbstractDFG,
738738 mhp = getMultihypoDistribution (fctnode). p
739739 allmhp,certainidx,uncertnidx = getHypothesesVectors (mhp)
740740 if isLeastOneHypoAvailable (sfidx, certainidx, uncertnidx, isinit)
741- # special case works
742- @info " allowing init from incomplete set of previously initialized hypotheses, fct=$fct "
743- canuse = true
741+ # special case works
742+ @info " allowing init from incomplete set of previously initialized hypotheses, fct=$fct "
743+ canuse = true
744744 end
745745 end
746746
@@ -754,29 +754,6 @@ function factorCanInitFromOtherVars(dfg::AbstractDFG,
754754end
755755
756756
757- # wow, that was quite far off -- needs testing
758- # function factorCanInitFromOtherVars(dfg::T,
759- # fct::Symbol,
760- # loovar::Symbol)::Tuple{Bool, Vector{Symbol}, Vector{Symbol}} where T <: AbstractDFG
761- # #
762- # # all variables attached to this factor
763- # varsyms = getNeighbors(dfg, fct)
764- #
765- # # list of factors to use in init operation
766- # useinitfct = Symbol[]
767- # faillist = Symbol[]
768- # for vsym in varsyms
769- # xi = DFG.getVariable(dfg, vsym)
770- # if (isInitialized(xi) && sum(useinitfct .== fct) == 0 ) || length(varsyms) == 1
771- # push!(useinitfct, fct)
772- # end
773- # end
774- #
775- # return (length(useinitfct)==length(varsyms)&&length(faillist)==0,
776- # useinitfct,
777- # faillist )
778- # end
779-
780757"""
781758 $(SIGNATURES)
782759
@@ -830,6 +807,7 @@ function doautoinit!( dfg::AbstractDFG,
830807 end
831808 # FIXME ensure a product of only partial densities and returned pts are put to proper dimensions
832809 bel,inferdim = propagateBelief (dfg, getVariable (dfg,vsym), getFactor .(dfg,useinitfct), solveKey= solveKey, logger= logger)
810+ @info " MANIFOLD IS" bel. manifold string (getPoints (bel, false )[1 ])
833811 setValKDE! (xi, getPoints (bel, false ), true , inferdim, solveKey= solveKey)
834812 # Update the estimates (longer DFG function used so cloud is also updated)
835813 setVariablePosteriorEstimates! (dfg, xi. label, solveKey)
0 commit comments