Skip to content

Commit ef4cdd0

Browse files
committed
small api updates, issue in tree building
1 parent a0c850b commit ef4cdd0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/HexagonalCloud.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,19 @@ DistributedFactorGraphs._copyIntoGraph!(cloudFg, localFg, union(getVariableIds(c
5252
@test symdiff(getFactorIds(localFg), getFactorIds(cloudFg)) == []
5353
@test isFullyConnected(localFg)
5454
# Show it
55-
toDotFile(localFg, "/tmp/localfg.dot")
55+
toDotFile(localFg, "/tmp/localfg.dot") # @async run(`xdot /tmp/localfg.dot`)
5656

5757
# Alrighty! At this point, we should be able to solve locally...
5858
# perform inference, and remember first runs are slower owing to Julia's just-in-time compiling
59-
batchSolve!(localFg, drawpdf=true, show=true)
59+
tree = wipeBuildNewTree!(localFg, drawpdf=true, show=true)
6060
# Erm, whut? Error = mcmcIterationIDs -- unaccounted variables
61+
# batchSolve!(localFg, drawpdf=true, show=true)
6162

6263
# Trying new method.
63-
tree, smtasks = batchSolve!(localFg, treeinit=true, drawpdf=true, show=true,
64-
returntasks=true, limititers=50,
65-
upsolve=true, downsolve=true )
64+
localFg.solverParams.drawtree = true
65+
localFg.solverParams.showtree = true
66+
67+
tree, smt, hist = solveTree!(localFg)
6668

6769
#### WIP and general debugging
6870

0 commit comments

Comments
 (0)