Skip to content

no method FactorCompute(::FactorDFG) #1161

@dehann

Description

@dehann

Possible Solution

Likely just need shim:

FactorCompute(pf::FactorDFG) = FactorCompute(unpackFactor(pf))

Error Stack

ERROR: MethodError: no method matching DistributedFactorGraphs.FactorCompute(::FactorDFG)
The type `DistributedFactorGraphs.FactorCompute` exists, but no method is defined for this combination of argument types when trying to construct it.

Closest candidates are:
  DistributedFactorGraphs.FactorCompute(::Symbol, ::Vector{Symbol}, ::DistributedFactorGraphs.GenericFunctionNodeData{T}; tags, timestamp, solvable, nstime, id, smallData) where T
   @ DistributedFactorGraphs ~/.julia/packages/DistributedFactorGraphs/lIoPH/src/entities/DFGFactor.jl:291
  DistributedFactorGraphs.FactorCompute(::Symbol, ::Union{Dates.DateTime, TimeZones.ZonedDateTime}, ::Dates.Nanosecond, ::Set{Symbol}, ::DistributedFactorGraphs.GenericFunctionNodeData{T}, ::Int64, ::Tuple; id, smallData) where T
   @ DistributedFactorGraphs ~/.julia/packages/DistributedFactorGraphs/lIoPH/src/entities/DFGFactor.jl:246
  DistributedFactorGraphs.FactorCompute(; id, label, tags, _variableOrderSymbols, timestamp, nstime, solverData, solvable, smallData)
   @ DistributedFactorGraphs ~/.julia/packages/DistributedFactorGraphs/lIoPH/src/entities/DFGFactor.jl:186

Stacktrace:
 [1] top-level scope
   @ ./REPL[33]:2

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions