@@ -923,17 +923,13 @@ end
923923
924924"""
925925 $SIGNATURES
926- Update the fg from solution in vardict and add MeanMaxPPE (all just mean) . Usefull for plotting
926+ Update the fg from solution in vardict. Usefull for plotting
927927"""
928928function updateParametricSolution! (sfg, vardict:: AbstractDict ; solveKey:: Symbol = :parametric )
929929 for (v, val) in vardict
930930 vnd = getState (getVariable (sfg, v), solveKey)
931931 # Update the variable node data value and covariance
932932 updateSolverDataParametric! (vnd, val. val, val. cov)
933- # fill in ppe as mean
934- Xc = collect (getCoordinates (getVariableType (sfg, v), val. val))
935- ppe = DFG. MeanMaxPPE (solveKey, Xc, Xc, Xc)
936- getPPEDict (getVariable (sfg, v))[solveKey] = ppe
937933 end
938934end
939935
@@ -948,10 +944,6 @@ function updateParametricSolution!(fg, M, labels::AbstractArray{Symbol}, vals,
948944 covar = isnothing (Σ) ? vnd. bw : covars[i]
949945 # Update the variable node data value and covariance
950946 updateSolverDataParametric! (vnd, val, covar)# FIXME add cov
951- # fill in ppe as mean
952- Xc = collect (getCoordinates (getVariableType (fg, v), val))
953- ppe = DFG. MeanMaxPPE (solveKey, Xc, Xc, Xc)
954- getPPEDict (getVariable (fg, v))[solveKey] = ppe
955947 end
956948
957949end
@@ -973,7 +965,7 @@ function createMvNormal(v::VariableCompute, key = :parametric)
973965 dims = vnd. dims
974966 return createMvNormal (vnd. val[1 : dims, 1 ], vnd. bw[1 : dims, 1 : dims])
975967 else
976- @warn " Trying MvNormal Fit, replace with PPE fits in future "
968+ @warn " Trying MvNormal Fit"
977969 return fit (MvNormal, getState (v, key). val)
978970 end
979971end
@@ -1035,10 +1027,6 @@ function autoinitParametricOptim!(
10351027 updateSolverDataParametric! (vnd, val, cov)
10361028
10371029 vnd. initialized = true
1038- # fill in ppe as mean
1039- Xc = collect (getCoordinates (getVariableType (xi), val))
1040- ppe = DFG. MeanMaxPPE (:parametric , Xc, Xc, Xc)
1041- getPPEDict (xi)[:parametric ] = ppe
10421030
10431031 # updateVariableSolverData!(dfg, xi, solveKey, true; warn_if_absent=false)
10441032 # updateVariableSolverData!(dfg, xi.label, getState(xi, solveKey), :graphinit, true, Symbol[]; warn_if_absent=false)
0 commit comments