Skip to content

Commit eebf7b4

Browse files
committed
Updates
1 parent bde114e commit eebf7b4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/FileDFG/services/FileDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function saveDFG(dfg::G, folder::String) where G <: AbstractDFG
2323
end
2424
# Factors
2525
for f in factors
26-
#fPacked = packFactor(dfg, f)
26+
fPacked = packFactor(dfg, f)
2727
io = open("$folder/factors/$(f.label).json", "w")
2828
JSON2.write(io, fPacked)
2929
close(io)

src/services/DFGFactor.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function convert(::Type{DFGFactorSummary}, f::DFGFactor)
44
return DFGFactorSummary(f.label, deepcopy(f.tags), f._internalId, deepcopy(f._variableOrderSymbols))
55
end
66

7-
function pack(dfg::G, f::DFGFactor)::Dict{String, Any} where G <: AbstractDFG
7+
function packFactor(dfg::G, f::DFGFactor)::Dict{String, Any} where G <: AbstractDFG
88
# Construct the properties to save
99
props = Dict{String, Any}()
1010
props["label"] = string(f.label)
@@ -31,7 +31,7 @@ function pack(dfg::G, f::DFGFactor)::Dict{String, Any} where G <: AbstractDFG
3131
return props
3232
end
3333

34-
function unpack(dfg::G, packedProps::Dict{String, Any}, iifModule)::DFGFactor where G <: AbstractDFG
34+
function unpackFactor(dfg::G, packedProps::Dict{String, Any}, iifModule)::DFGFactor where G <: AbstractDFG
3535
label = packedProps["label"]
3636
tags = JSON2.read(packedProps["tags"], Vector{Symbol})
3737

src/services/DFGVariable.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Base: ==, convert
22

3-
function pack(dfg::G, v::DFGVariable)::Dict{String, Any} where G <: AbstractDFG
3+
function packVariable(dfg::G, v::DFGVariable)::Dict{String, Any} where G <: AbstractDFG
44
props = Dict{String, Any}()
55
props["label"] = string(v.label)
66
props["timestamp"] = string(v.timestamp)
@@ -13,7 +13,7 @@ function pack(dfg::G, v::DFGVariable)::Dict{String, Any} where G <: AbstractDFG
1313
return props
1414
end
1515

16-
function unpack(dfg::G, packedProps::Dict{String, Any})::DFGVariable where G <: AbstractDFG
16+
function unpackVariable(dfg::G, packedProps::Dict{String, Any})::DFGVariable where G <: AbstractDFG
1717
label = Symbol(packedProps["label"])
1818
timestamp = DateTime(packedProps["timestamp"])
1919
tags = JSON2.read(packedProps["tags"], Vector{Symbol})

0 commit comments

Comments
 (0)