Skip to content

Commit e400ae5

Browse files
committed
change to params instead (similar to before)
1 parent 9adc57a commit e400ae5

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/services/AbstractDFG.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ getSolverParams(dfg::AbstractDFG) = dfg.solverParams
5858
Method must be overloaded by the user for Serialization to work. E.g. IncrementalInference uses `CommonConvWrapper <: FactorOperationalMemory`.
5959
"""
6060
getFactorOperationalMemoryType(dummy) = error("Please define this function getFactorOperationalMemoryType for your usecase, e.g. = `IIF.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)