Skip to content

Commit 24d3764

Browse files
committed
restore DERelative tests, drop zero init
1 parent ad00c3b commit 24d3764

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

test/testDERelative.jl

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,9 @@ pts_ = approxConv(fg, :x0x1f1, :x0)
390390
##
391391

392392
tfg = initfg()
393-
for s in ls(fg)
394-
initVariable!(fg, s, [0.1.*zeros(2) for _ in 1:100])
395-
end
393+
# for s in ls(fg)
394+
# initVariable!(fg, s, [0.1.*zeros(2) for _ in 1:100])
395+
# end
396396

397397
pts = approxConv(fg, :x0f1, :x7, setPPE=true, tfg=tfg)
398398
initVariable!(tfg, :x7, pts)
@@ -413,16 +413,23 @@ initVariable!(tfg, :x7, pts)
413413
@error "Disabling useMsgLikelihood for DERelative test, follow fix on #1010 as rough guide"
414414
getSolverParams(fg).useMsgLikelihoods = false
415415

416-
solveTree!(fg);
416+
smtasks = Task[]
417+
tree = solveTree!(fg; recordcliqs=ls(fg), smtasks);
418+
419+
hists = fetchCliqHistoryAll!(smtasks)
420+
printCSMHistoryLogical(hists)
421+
422+
_, csmc = repeatCSMStep!(hists[2], 6; duplicate=true);
423+
417424

418425
##
419426

420427
# solveTree has weird problem in breaking correct init and inserting zeros???
421-
@test_broken isapprox( getPPESuggested(fg, :x0), x0_val_ref; atol=0.2)
422-
@test_broken isapprox( getPPESuggested(fg, :x1), x1_val_ref; atol=0.2)
423-
@test_broken isapprox( getPPESuggested(fg, :x2), x2_val_ref; atol=0.2)
424-
@test_broken isapprox( getPPESuggested(fg, :x3), x3_val_ref; atol=0.2)
425-
@test_broken isapprox( getPPESuggested(fg, :x4), x4_val_ref; atol=0.2)
428+
@test isapprox( getPPESuggested(fg, :x0), x0_val_ref; atol=0.2)
429+
@test isapprox( getPPESuggested(fg, :x1), x1_val_ref; atol=0.2)
430+
@test isapprox( getPPESuggested(fg, :x2), x2_val_ref; atol=0.2)
431+
@test isapprox( getPPESuggested(fg, :x3), x3_val_ref; atol=0.2)
432+
@test isapprox( getPPESuggested(fg, :x4), x4_val_ref; atol=0.2)
426433

427434
@test isapprox( getPPESuggested(fg, :x5), x5_val_ref; atol=0.2)
428435
@test isapprox( getPPESuggested(fg, :x6), x6_val_ref; atol=0.2)

0 commit comments

Comments
 (0)