Skip to content

Commit 581e3ae

Browse files
authored
Merge pull request #333 from JuliaRobotics/maint/20Q1/rem_fncargvID
remove fncargID
2 parents 76a1aef + 403650c commit 581e3ae

File tree

6 files changed

+1
-26
lines changed

6 files changed

+1
-26
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DistributedFactorGraphs"
22
uuid = "b5cc3c7e-6572-11e9-2517-99fb8daf2f04"
3-
version = "0.6.2"
3+
version = "0.7.0"
44

55
[deps]
66
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

src/CloudGraphsDFG/services/CloudGraphsDFG.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ function getFactor(dfg::CloudGraphsDFG, label::Union{Symbol, String})::DFGFactor
201201

202202
# Lastly, rebuild the metadata
203203
factor = dfg.rebuildFactorMetadata!(dfg, factor)
204-
# GUARANTEED never to bite us in the future...
205-
# ... TODO: refactor if changed: https://github.com/JuliaRobotics/IncrementalInference.jl/issues/350
206-
getSolverData(factor).fncargvID = factor._variableOrderSymbols
207204

208205
return factor
209206
end

src/FileDFG/services/FileDFG.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,6 @@ function loadDFG(dst::String, iifModule, dfgLoadInto::G; loaddir=joinpath("/","t
147147
iifModule.rebuildFactorMetadata!(dfgLoadInto, factor)
148148
end
149149

150-
# PATCH - To update the fncargvID for factors, it's being cleared somewhere in rebuildFactorMetadata.
151-
# TEMPORARY
152-
# TODO: Remove in future
153-
map(f->getSolverData(f).fncargvID = f._variableOrderSymbols, getFactors(dfgLoadInto))
154-
155150
# remove the temporary unzipped file
156151
if unzip
157152
@info "DFG.loadDFG is deleting a temp folder created during unzip, $folder"

src/services/CompareUtils.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ end
213213
function compare(a::GenericFunctionNodeData{T1,S},b::GenericFunctionNodeData{T2,S}) where {T1, T2, S}
214214
# TODO -- beef up this comparison to include the gwp
215215
TP = true
216-
TP = TP && a.fncargvID == b.fncargvID
217216
TP = TP && a.eliminated == b.eliminated
218217
TP = TP && a.potentialused == b.potentialused
219218
TP = TP && a.edgeIDs == b.edgeIDs

src/services/Serialization.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ function unpackFactor(dfg::G, packedProps::Dict{String, Any})::DFGFactor where G
153153
factor._variableOrderSymbols = _variableOrderSymbols
154154
setSolvable!(factor, solvable)
155155

156-
# GUARANTEED never to bite us in the ass in the future...
157-
# ... TODO: refactor if changed: https://github.com/JuliaRobotics/IncrementalInference.jl/issues/350
158-
factor.data.fncargvID = deepcopy(_variableOrderSymbols)
159-
160156
# Note, once inserted, you still need to call IIF.rebuildFactorMetadata!
161157
return factor
162158
end

test/compareTests.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ gfnd2 = deepcopy(gfnd1)
4747
gfnd3 = GenericFunctionNodeData([:a,:b], true, true, [1,2], :symbol, cos)
4848

4949
@test gfnd1 == gfnd2
50-
gfnd2.fncargvID = [:a, :b]
51-
@test gfnd1 == gfnd2
52-
gfnd2.fncargvID = [:b, :a]
53-
@test !(gfnd1 == gfnd2)
5450
@test !(gfnd1 == gfnd3)
5551

5652
# DFGFactor
@@ -59,10 +55,6 @@ f2 = deepcopy(f1)
5955
f3 = DFGFactor(:f1, [:b, :a], gfnd1)
6056

6157
@test f1 == f2
62-
f2.solverData = gfnd1
63-
@test f1 == f2
64-
f2.solverData = gfnd2
65-
@test !(f1 == f2)
6658
@test !(f1 == f3)
6759

6860

@@ -85,8 +77,4 @@ gfnd2 = deepcopy(gfnd1)
8577
gfnd3 = GenericFunctionNodeData([:a,:b], true, true, [1,2], :symbol, cos)
8678

8779
@test compare(gfnd1, gfnd2)
88-
gfnd2.fncargvID = [:a, :b]
89-
@test compare(gfnd1, gfnd2)
90-
gfnd2.fncargvID = [:b, :a]
91-
@test !(compare(gfnd1, gfnd2))
9280
@test_broken !(compare(gfnd1, gfnd3))

0 commit comments

Comments
 (0)