Skip to content

Commit eb70949

Browse files
committed
more fixes
1 parent 983f6a1 commit eb70949

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/testBlocks.jl

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function Base.convert(::Type{TestAbstractPrior}, d::PackedTestAbstractPrior)
5757
TestAbstractPrior()
5858
end
5959

60-
struct TestCCW{T} <: FactorOperationalMemory where {T<:FunctorInferenceType}
60+
struct TestCCW{T <: AbstractFactor} <: FactorOperationalMemory
6161
usrfnc!::T
6262
end
6363

@@ -69,7 +69,7 @@ DFG.getFactorOperationalMemoryType(par::NoSolverParams) = TestCCW
6969
DFG.rebuildFactorMetadata!(dfg::AbstractDFG{NoSolverParams}, fac::DFGFactor) = fac
7070

7171
function Base.convert(::Type{DFG.FunctionNodeData{TestCCW{F}}},
72-
d::DFG.PackedFunctionNodeData{<:PackedInferenceType}) where F<:FunctorInferenceType
72+
d::DFG.PackedFunctionNodeData{<:PackedAbstractFactor}) where {F <: AbstractFactor}
7373

7474
return DFG.FunctionNodeData(d.eliminated,
7575
d.potentialused,
@@ -78,19 +78,20 @@ function Base.convert(::Type{DFG.FunctionNodeData{TestCCW{F}}},
7878
d.multihypo,
7979
d.certainhypo,
8080
d.nullhypo,
81-
d.solveInProgress)
81+
d.solveInProgress,
82+
d.inflation)
8283
end
8384

84-
function Base.convert(::Type{DFG.PackedFunctionNodeData{P}}, d::DFG.FunctionNodeData{<:FactorOperationalMemory}) where P <: PackedInferenceType
85-
# mhstr = packmultihypo(d.fnc) # this is where certainhypo error occurs
85+
function Base.convert(::Type{DFG.PackedFunctionNodeData{P}}, d::DFG.FunctionNodeData{<:FactorOperationalMemory}) where P <: PackedAbstractFactor
8686
return DFG.PackedFunctionNodeData(d.eliminated,
8787
d.potentialused,
8888
d.edgeIDs,
8989
convert(P, d.fnc.usrfnc!),
9090
d.multihypo,
9191
d.certainhypo,
9292
d.nullhypo,
93-
d.solveInProgress)
93+
d.solveInProgress,
94+
d.inflation)
9495
end
9596

9697

0 commit comments

Comments
 (0)