@@ -21,12 +21,11 @@ Base.rm(saveFolder*".tar.gz")
2121@test symdiff (ls (fg), ls (retDFG)) == []
2222@test symdiff (lsf (fg), lsf (retDFG)) == []
2323
24- @show getFactorState (fg, :x2x3x4f1 ). multihypo
25- @show getFactorState (retDFG, :x2x3x4f1 ). multihypo
24+ @show DFG . getRecipehyper (fg, :x2x3x4f1 ). multihypo
25+ @show DFG . getRecipehyper (retDFG, :x2x3x4f1 ). multihypo
2626
2727# check for match
28- @test getFactorState (fg, :x2x3x4f1 ). multihypo - getFactorState (retDFG, :x2x3x4f1 ). multihypo |> norm < 1e-10
29- @test getFactorState (fg, :x2x3x4f1 ). certainhypo - getFactorState (retDFG, :x2x3x4f1 ). certainhypo |> norm < 1e-10
28+ @test DFG. getRecipehyper (fg, :x2x3x4f1 ). multihypo - DFG. getRecipehyper (retDFG, :x2x3x4f1 ). multihypo |> norm < 1e-10
3029
3130# #
3231end
@@ -46,9 +45,8 @@ solveTree!(fg)
4645
4746# manually change a few fields to test if they are preserved
4847fa = getFactor (fg, :x2x3x4f1 )
49- getFactorState (fa). eliminated = true
50- # getFactorState(fa).solveInProgress = 1
51- getFactorState (fa). nullhypo = 0.5
48+ fa. state. eliminated = true
49+ fa. hyper. nullhypo = 0.5
5250
5351
5452saveFolder = " /tmp/dfg_test"
@@ -62,12 +60,11 @@ Base.rm(saveFolder*".tar.gz")
6260@test issetequal (ls (fg), ls (retDFG))
6361@test issetequal (lsf (fg), lsf (retDFG))
6462
65- @show getFactorState (fg, :x2x3x4f1 ). multihypo
66- @show getFactorState (retDFG, :x2x3x4f1 ). multihypo
63+ @show DFG . getRecipehyper (fg, :x2x3x4f1 ). multihypo
64+ @show DFG . getRecipehyper (retDFG, :x2x3x4f1 ). multihypo
6765
6866# check for match
69- @test isapprox (getFactorState (fg, :x2x3x4f1 ). multihypo, getFactorState (retDFG, :x2x3x4f1 ). multihypo)
70- @test isapprox (getFactorState (fg, :x2x3x4f1 ). certainhypo, getFactorState (retDFG, :x2x3x4f1 ). certainhypo)
67+ @test isapprox (DFG. getRecipehyper (fg, :x2x3x4f1 ). multihypo, DFG. getRecipehyper (retDFG, :x2x3x4f1 ). multihypo)
7168
7269
7370fb = getFactor (retDFG, :x2x3x4f1 )
0 commit comments