Skip to content

Commit e30ddde

Browse files
authored
Merge pull request #793 from JuliaRobotics/21Q3/fix/comparegrad
fix required for IIF tests with new gradients
2 parents b71d30c + 4e07db0 commit e30ddde

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
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.15.0"
3+
version = "0.15.1"
44

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

src/services/CompareUtils.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,14 @@ function compareFactor(A::DFGFactor,
236236
skipsamples::Bool=true,
237237
skipcompute::Bool=true )
238238
#
239-
TP = compareAll(A, B, skip=union([:attributes;:solverData;:_variableOrderSymbols],skip), show=show)
239+
skip_ =
240+
TP = compareAll(A, B, skip=union([:attributes;:solverData;:_variableOrderSymbols;:_gradients],skip), show=show)
240241
# TP = TP & compareAll(A.attributes, B.attributes, skip=[:data;], show=show)
241-
TP = TP & compareAllSpecial(getSolverData(A), getSolverData(B), skip=union([:fnc], skip), show=show)
242+
TP = TP & compareAllSpecial(getSolverData(A), getSolverData(B), skip=union([:fnc;:_gradients], skip), show=show)
242243
if :fnc in skip
243244
return TP
244245
end
245-
TP = TP & compareAllSpecial(getSolverData(A).fnc, getSolverData(B).fnc, skip=union([:cpt;:measurement;:params;:varidx;:threadmodel], skip), show=show)
246+
TP = TP & compareAllSpecial(getSolverData(A).fnc, getSolverData(B).fnc, skip=union([:cpt;:measurement;:params;:varidx;:threadmodel;:_gradients], skip), show=show)
246247
if !(:measurement in skip)
247248
TP = TP & (skipsamples || compareAll(getSolverData(A).fnc.measurement, getSolverData(B).fnc.measurement, show=show, skip=skip))
248249
end

0 commit comments

Comments
 (0)