Skip to content

Commit a0c850b

Browse files
committed
Test
1 parent 3795259 commit a0c850b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test/HexagonalCloud.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ cloudFg = CloudGraphsDFG{SolverParams}("localhost", 7474, "neo4j", "test",
1313
IncrementalInference.decodePackedType,
1414
IncrementalInference.rebuildFactorMetadata!,
1515
solverParams=SolverParams())
16+
# cloudFg = GraphsDFG{SolverParams}(params=SolverParams())
1617
clearSession!!(cloudFg)
1718
# cloudFg = initfg()
1819

@@ -45,10 +46,10 @@ end
4546

4647
# Right, let's copy it into local memory for solving...
4748
localFg = GraphsDFG{SolverParams}(params=SolverParams())
48-
DistributedFactorGraphs._copyIntoGraph!(cloudFg, localFg, union(getVariableIds(fg), getFactorIds(fg)), true)
49+
DistributedFactorGraphs._copyIntoGraph!(cloudFg, localFg, union(getVariableIds(cloudFg), getFactorIds(cloudFg)), true)
4950
# Some checks
50-
@test getVariableIds(localFg) == getVariableIds(cloudFg)
51-
@test getFactorIds(localFg) == getFactorIds(cloudFg)
51+
@test symdiff(getVariableIds(localFg), getVariableIds(cloudFg)) == []
52+
@test symdiff(getFactorIds(localFg), getFactorIds(cloudFg)) == []
5253
@test isFullyConnected(localFg)
5354
# Show it
5455
toDotFile(localFg, "/tmp/localfg.dot")
@@ -58,6 +59,11 @@ toDotFile(localFg, "/tmp/localfg.dot")
5859
batchSolve!(localFg, drawpdf=true, show=true)
5960
# Erm, whut? Error = mcmcIterationIDs -- unaccounted variables
6061

62+
# Trying new method.
63+
tree, smtasks = batchSolve!(localFg, treeinit=true, drawpdf=true, show=true,
64+
returntasks=true, limititers=50,
65+
upsolve=true, downsolve=true )
66+
6167
#### WIP and general debugging
6268

6369
# Testing with GenericMarginal

0 commit comments

Comments
 (0)