Skip to content

Commit b0fb336

Browse files
committed
Merge branch 'master' into test/20Q2/testCGDFG_both
2 parents 5c292fa + 8b33bce commit b0fb336

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/entities/DFGFactor.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ mutable struct GenericFunctionNodeData{T<:Union{PackedInferenceType, FunctorInfe
4141
edgeIDs::Array{Int,1}
4242
frommodule::S # JT TODO remove frommodule, not used at all as far as i can tell
4343
fnc::T
44-
multihypo::Array{Float64} # likely to moved when GenericWrapParam is refactored
44+
multihypo::Vector{Float64} # likely to moved when GenericWrapParam is refactored
4545
certainhypo::Vector{Int}
4646
solveInProgress::Int
4747
GenericFunctionNodeData{T, S}() where {T, S} = new{T,S}()

src/services/AbstractDFG.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ getSolverParams(dfg::AbstractDFG) = dfg.solverParams
5757
5858
Method must be overloaded by the user for Serialization to work. E.g. IncrementalInference uses `CommonConvWrapper <: FactorOperationalMemory`.
5959
"""
60-
getFactorOperationalMemoryType(dummy) = error("Please define this function getFactorOperationalMemoryType for your usecase, e.g. = `IIF.CommonConvWrapper <: FactorOperationalMemory`")
60+
getFactorOperationalMemoryType(dummy) = error("Please extend your workspace with function getFactorOperationalMemoryType(<:AbstractParams) for your usecase, e.g. IncrementalInference uses `CommonConvWrapper <: FactorOperationalMemory`")
61+
getFactorOperationalMemoryType(dfg::AbstractDFG) = getFactorOperationalMemoryType(getSolverParams(dfg))
6162

6263

6364
##------------------------------------------------------------------------------

test/consolInterfaceDev.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ using Dates
77
using UUIDs
88
# using IncrementalInference
99

10-
## must overload the function
11-
import DistributedFactorGraphs: getFactorOperationalMemoryType
12-
# DF, dropping DFG. so that Main context is used and can be overridden by IIF.getFac...Type
13-
getFactorOperationalMemoryType(::CloudGraphsDFG) = TestCCW
14-
1510

1611
include("testBlocks.jl")
1712

0 commit comments

Comments
 (0)