@@ -298,10 +298,10 @@ function _packSolverData(
298
298
#
299
299
packtype = convertPackedType (fnctype)
300
300
try
301
- packedJson = convert ( PackedFunctionNodeData{packtype}, getSolverData (f) )
302
- # packedJson = JSON2.write(packed) # NOTE SINGLE TOP LEVEL JSON.write ONLY
301
+ packed = convert ( PackedFunctionNodeData{packtype}, getSolverData (f) )
302
+ packedJson = packed # JSON2.write(packed) # NOTE SINGLE TOP LEVEL JSON.write ONLY
303
303
if base64Encode
304
- # 833
304
+ # 833, 848, Neo4jDFG still using base64(JSON2.write(solverdata))...
305
305
packedJson = JSON2. write (packed)
306
306
packedJson = base64encode (packedJson)
307
307
end
@@ -354,7 +354,6 @@ function Base.convert(::Type{PF}, nt::NamedTuple) where {PF <: AbstractPackedFac
354
354
end
355
355
356
356
function Base. convert (:: Type{GenericFunctionNodeData{P}} , nt:: NamedTuple ) where P
357
- @show P
358
357
GenericFunctionNodeData {P} (
359
358
nt. eliminated,
360
359
nt. potentialused,
@@ -389,6 +388,14 @@ function unpackFactor(dfg::G, packedProps::Dict{String, Any}) where G <: Abstrac
389
388
tags = Vector {Symbol} ()
390
389
end
391
390
end
391
+
392
+ # Get the stored variable order
393
+ _variableOrderSymbols = if packedProps[" _variableOrderSymbols" ] isa String
394
+ JSON2. read (packedProps[" _variableOrderSymbols" ], Vector{Symbol})
395
+ else
396
+ Symbol .(packedProps[" _variableOrderSymbols" ])
397
+ end
398
+
392
399
data = packedProps[" data" ]
393
400
datatype = packedProps[" fnctype" ]
394
401
@debug " DECODING factor type = '$(datatype) ' for factor '$label '"
@@ -398,13 +405,6 @@ function unpackFactor(dfg::G, packedProps::Dict{String, Any}) where G <: Abstrac
398
405
packed = nothing
399
406
fullFactorData = nothing
400
407
401
- # Get the stored variable order
402
- _variableOrderSymbols = if packedProps[" _variableOrderSymbols" ] isa String
403
- JSON2. read (packedProps[" _variableOrderSymbols" ], Vector{Symbol})
404
- else
405
- Symbol .(packedProps[" _variableOrderSymbols" ])
406
- end
407
-
408
408
# @show packtype
409
409
# @show data
410
410
try
0 commit comments