@@ -231,8 +231,8 @@ function unpackVariable(dfg::G,
231
231
Symbol .(packedProps[" tags" ])
232
232
end
233
233
234
+ # FIXME , drop nested packing, see DFG #867
234
235
ppeDict = if unpackPPEs && haskey (packedProps," ppesDict" )
235
- # FIXME , drop nested packing, see DFG #867
236
236
JSON2. read (packedProps[" ppeDict" ], Dict{Symbol, MeanMaxPPE})
237
237
elseif unpackPPEs && haskey (packedProps," ppes" ) && packedProps[" ppes" ] isa AbstractVector
238
238
# these different cases are not well covered in tests, but first fix #867
@@ -255,13 +255,13 @@ function unpackVariable(dfg::G,
255
255
isnothing (variableType) && error (" Cannot deserialize variableType '$variableTypeString ' in variable '$label '" )
256
256
pointType = getPointType (variableType)
257
257
258
+ # FIXME , drop nested packing, see DFG #867
258
259
solverData = if unpackSolverData && haskey (packedProps, " solverDataDict" )
259
260
packed = JSON2. read (packedProps[" solverDataDict" ], Dict{String, PackedVariableNodeData})
260
261
Dict {Symbol, VariableNodeData{variableType, pointType}} (Symbol .(keys (packed)) .=> map (p -> unpackVariableNodeData (dfg, p), values (packed)))
261
262
elseif unpackPPEs && haskey (packedProps," solverData" ) && packedProps[" solverData" ] isa AbstractVector
262
263
solverdict = Dict {Symbol, VariableNodeData{variableType, pointType}} ()
263
264
for sd in packedProps[" solverData" ]
264
- # _type = haskey(sd, "_type") ? sd["_type"] : "DistributedFactorGraphs.PackedVariableNodeData"
265
265
solverdict[Symbol (sd[" solveKey" ])] = _unpackVariableNodeData (dfg, sd)
266
266
end
267
267
solverdict
0 commit comments