Skip to content

Commit 68eb5f3

Browse files
committed
N as params, and N=N
1 parent daa6cfd commit 68eb5f3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/GraphProductOperations.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function propagateBelief( dfg::AbstractDFG,
4545
# @info "BUILDING MKD" varType M
4646

4747
# take the product
48-
mkd = AMP.manifoldProduct(dens, M, Niter=1, oldPoints=oldpts)
48+
mkd = AMP.manifoldProduct(dens, M, Niter=1, oldPoints=oldpts, N=N)
4949

5050
# @info "GOT" mkd.manifold
5151

@@ -95,7 +95,7 @@ Return: product belief, full proposals, partial dimension proposals, labels
9595
function localProduct(dfg::AbstractDFG,
9696
sym::Symbol;
9797
solveKey::Symbol=:default,
98-
N::Int=maximum([length(getPoints(getBelief(dfg, sym, solveKey))); getSolverParams(dfg).N]),
98+
N::Int=getSolverParams(dfg).N, #maximum([length(getPoints(getBelief(dfg, sym, solveKey))); getSolverParams(dfg).N]),
9999
dbg::Bool=false,
100100
logger=ConsoleLogger() )
101101
#

src/services/ApproxConv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function proposalbeliefs!(dfg::AbstractDFG,
300300
# partials::Dict{Any, Vector{ManifoldKernelDensity}}, # TODO change this structure
301301
measurement::Tuple=(Vector{Vector{Float64}}(),);
302302
solveKey::Symbol=:default,
303-
N::Int=maximum([length(getPoints(getBelief(dfg, destlbl, solveKey))); getSolverParams(dfg).N]),
303+
N::Int=getSolverParams(dfg).N, #maximum([length(getPoints(getBelief(dfg, destlbl, solveKey))); getSolverParams(dfg).N]),
304304
dbg::Bool=false )
305305
#
306306

src/services/GraphInit.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function doautoinit!( dfg::AbstractDFG,
8989
xi::DFGVariable;
9090
solveKey::Symbol=:default,
9191
singles::Bool=true,
92-
N::Int=maximum([length(getPoints(getBelief(xi, solveKey))); getSolverParams(dfg).N]),
92+
N::Int=getSolverParams(dfg).N, #maximum([length(getPoints(getBelief(xi, solveKey))); getSolverParams(dfg).N]),
9393
logger=ConsoleLogger() )
9494
#
9595
didinit = false
@@ -122,7 +122,7 @@ function doautoinit!( dfg::AbstractDFG,
122122
@info "do init of $vsym"
123123
end
124124
# FIXME ensure a product of only partial densities and returned pts are put to proper dimensions
125-
bel,inferdim = propagateBelief(dfg, getVariable(dfg,vsym), getFactor.(dfg,useinitfct), solveKey=solveKey, logger=logger)
125+
bel,inferdim = propagateBelief(dfg, getVariable(dfg,vsym), getFactor.(dfg,useinitfct), solveKey=solveKey, logger=logger, N=N)
126126
# @info "MANIFOLD IS" bel.manifold isPartial(bel) string(bel._partial) string(getPoints(bel, false)[1])
127127
setValKDE!(xi, bel, true, inferdim, solveKey=solveKey) # getPoints(bel, false)
128128
# Update the estimates (longer DFG function used so cloud is also updated)

0 commit comments

Comments
 (0)