Skip to content

Commit 78fc6dc

Browse files
committed
fix rebuildFactorCache! bug
1 parent 2e558d7 commit 78fc6dc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/FileDFG/services/FileDFG.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ See also: [`loadDFG`](@ref), [`saveDFG`](@ref)
100100
function loadDFG!(
101101
dfgLoadInto::AbstractDFG{V, F},
102102
file::AbstractString;
103-
# overwriteDFGMetadata::Bool = true,
104103
) where {V <: AbstractGraphVariable, F <: AbstractGraphFactor}
105104
# add if doesn't have .tar.gz extension
106105
if !contains(basename(file), ".tar.gz")
@@ -125,7 +124,7 @@ function loadDFG!(
125124
return addVariable!(dfgLoadInto, v)
126125
end
127126

128-
@info "Loaded $(length(variables)) variables"
127+
@debug "Loaded $(length(variables)) variables"
129128

130129
factorfiles = readdir(joinpath(loaddir, "factors"); sort = false, join = true)
131130

@@ -134,9 +133,9 @@ function loadDFG!(
134133
return addFactor!(dfgLoadInto, f)
135134
end
136135

137-
@info "Loaded $(length(factors)) factors"
136+
@debug "Loaded $(length(factors)) factors"
138137

139-
if isa(dfgLoadInto, GraphsDFG) && getTypeDFGFactors(dfgLoadInto) != FactorDFG
138+
if isa(dfgLoadInto, GraphsDFG) && getTypeDFGFactors(dfgLoadInto) <: FactorDFG
140139
# Finally, rebuild the CCW's for the factors to completely reinflate them
141140
@showprogress 1 "Rebuilding factor solver cache" for factor in factors
142141
rebuildFactorCache!(dfgLoadInto, factor)

0 commit comments

Comments
 (0)