Skip to content

Commit 25f906e

Browse files
committed
scope fix
1 parent e181944 commit 25f906e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FileDFG/services/FileDFG.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ function loadDFG!(dfgLoadInto::AbstractDFG, dst::AbstractString)
127127
varFiles = readdir(varFolder)
128128
factorFiles = readdir(factorFolder)
129129
@showprogress 1 "loading variables" for varFile in varFiles
130+
jstr = read("$varFolder/$varFile", String)
130131
try
131-
jstr = read("$varFolder/$varFile", String)
132132
packedData = JSON3.read(jstr, PackedVariable)
133133
push!(variables, unpackVariable(packedData))
134134
catch ex
@@ -143,8 +143,8 @@ function loadDFG!(dfgLoadInto::AbstractDFG, dst::AbstractString)
143143
map(v->addVariable!(dfgLoadInto, v), variables)
144144

145145
@showprogress 1 "loading factors" for factorFile in factorFiles
146+
jstr = read("$factorFolder/$factorFile", String)
146147
try
147-
jstr = read("$factorFolder/$factorFile", String)
148148
packedData = JSON3.read(jstr, PackedFactor)
149149
push!(factors, unpackFactor(dfgLoadInto, packedData))
150150
catch ex

0 commit comments

Comments
 (0)