File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function Base.convert(::Type{TestAbstractPrior}, d::PackedTestAbstractPrior)
57
57
TestAbstractPrior ()
58
58
end
59
59
60
- struct TestCCW{T} <: FactorOperationalMemory where {T <: FunctorInferenceType }
60
+ struct TestCCW{T <: AbstractFactor } <: FactorOperationalMemory
61
61
usrfnc!:: T
62
62
end
63
63
@@ -69,7 +69,7 @@ DFG.getFactorOperationalMemoryType(par::NoSolverParams) = TestCCW
69
69
DFG. rebuildFactorMetadata! (dfg:: AbstractDFG{NoSolverParams} , fac:: DFGFactor ) = fac
70
70
71
71
function Base. convert (:: Type{DFG.FunctionNodeData{TestCCW{F}}} ,
72
- d:: DFG.PackedFunctionNodeData{<:PackedInferenceType } ) where F <: FunctorInferenceType
72
+ d:: DFG.PackedFunctionNodeData{<:PackedAbstractFactor } ) where {F <: AbstractFactor }
73
73
74
74
return DFG. FunctionNodeData (d. eliminated,
75
75
d. potentialused,
@@ -78,19 +78,20 @@ function Base.convert(::Type{DFG.FunctionNodeData{TestCCW{F}}},
78
78
d. multihypo,
79
79
d. certainhypo,
80
80
d. nullhypo,
81
- d. solveInProgress)
81
+ d. solveInProgress,
82
+ d. inflation)
82
83
end
83
84
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
86
86
return DFG. PackedFunctionNodeData (d. eliminated,
87
87
d. potentialused,
88
88
d. edgeIDs,
89
89
convert (P, d. fnc. usrfnc!),
90
90
d. multihypo,
91
91
d. certainhypo,
92
92
d. nullhypo,
93
- d. solveInProgress)
93
+ d. solveInProgress,
94
+ d. inflation)
94
95
end
95
96
96
97
You can’t perform that action at this time.
0 commit comments