@@ -39,18 +39,18 @@ function saveDFG(folder::AbstractString, dfg::AbstractDFG)
3939 map (f -> rm (" $varFolder /$f " ), readdir (varFolder))
4040 map (f -> rm (" $factorFolder /$f " ), readdir (factorFolder))
4141 # Variables
42- @showprogress " saving variables" for v in variables
42+ @showprogress desc = " saving variables" for v in variables
4343 # vPacked = packVariable(v)
4444 JSON. json (" $varFolder /$(v. label) .json" , v; style = DFGJSONStyle ())
4545 end
4646 # Factors
47- @showprogress " saving factors" for f in factors
47+ @showprogress desc = " saving factors" for f in factors
4848 JSON. json (" $factorFolder /$(f. label) .json" , f; style = DFGJSONStyle ())
4949 end
5050
5151 # GraphsDFG nodes
5252 @assert isa (dfg, GraphsDFG) " only metadata for GraphsDFG are supported"
53- p = Progress (4 , " Saving DFG Nodes" )
53+ p = Progress (4 ; desc = " Saving DFG Nodes" )
5454 JSON. json (" $savepath /graphroot.json" , dfg. graph; style = DFGJSONStyle ())
5555 next! (p)
5656 JSON. json (" $savepath /agent.json" , dfg. agent; style = DFGJSONStyle ())
@@ -119,7 +119,7 @@ function loadDFG!(
119119 variablefiles = readdir (joinpath (loaddir, " variables" ); sort = false , join = true )
120120
121121 # type instability on `variables` as either `::Vector{Variable}` or `::Vector{VariableCompute{<:}}` (vector of abstract)
122- variables = @showprogress 1 " loading variables" asyncmap (variablefiles) do file
122+ variables = @showprogress dt = 1 desc = " loading variables" asyncmap (variablefiles) do file
123123 v = JSON. parsefile (file, V; style = DFGJSONStyle ())
124124 return addVariable! (dfgLoadInto, v)
125125 end
@@ -128,7 +128,7 @@ function loadDFG!(
128128
129129 factorfiles = readdir (joinpath (loaddir, " factors" ); sort = false , join = true )
130130
131- factors = @showprogress 1 " loading factors" asyncmap (factorfiles) do file
131+ factors = @showprogress dt = 1 desc = " loading factors" asyncmap (factorfiles) do file
132132 f = JSON. parsefile (file, F; style = DFGJSONStyle ())
133133 return addFactor! (dfgLoadInto, f)
134134 end
@@ -137,7 +137,7 @@ function loadDFG!(
137137
138138 if isa (dfgLoadInto, GraphsDFG) && getTypeDFGFactors (dfgLoadInto) <: FactorDFG
139139 # Finally, rebuild the CCW's for the factors to completely reinflate them
140- @showprogress 1 " Rebuilding factor solver cache" for factor in factors
140+ @showprogress dt = 1 desc = " Rebuilding factor solver cache" for factor in factors
141141 rebuildFactorCache! (dfgLoadInto, factor)
142142 end
143143 end
@@ -170,7 +170,7 @@ function loadDFG(file::AbstractString)
170170 loaddir = Tar. extract (hdr -> contains (hdr. path, dfgnodenames), tar)
171171 close (tar)
172172
173- progess = Progress (4 , " Loading DFG Nodes" )
173+ progess = Progress (4 ; desc = " Loading DFG Nodes" )
174174 agent = JSON. parsefile (joinpath (loaddir, " agent.json" ), Agent; style = DFGJSONStyle ())
175175 next! (progess)
176176 graph = JSON. parsefile (
0 commit comments