Skip to content

Commit e76f3d8

Browse files
committed
Cleanup on @Warns
1 parent 3b6e055 commit e76f3d8

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

src/entities/DFGVariable.jl

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,21 @@ mutable struct VariableNodeData{T<:InferenceVariable}
2121
dontmargin::Bool
2222
# Tonio surprise TODO
2323
# frontalonly::Bool
24-
# A valid, packable default constructor is needed.
25-
2624
end
2725

28-
VariableNodeData(val::Array{Float64,2},
29-
bw::Array{Float64,2},
30-
BayesNetOutVertIDs::Array{Symbol,1},
31-
dimIDs::Array{Int,1},
32-
dims::Int,eliminated::Bool,
33-
BayesNetVertID::Symbol,
34-
separator::Array{Symbol,1},
35-
softtype::T,
36-
initialized::Bool,
37-
inferdim::Float64,
38-
ismargin::Bool,
39-
dontmargin::Bool) where T <: InferenceVariable = VariableNodeData{T}(val,bw,BayesNetOutVertIDs,dimIDs,dims,eliminated,BayesNetVertID,separator,softtype::T,initialized,inferdim,ismargin,dontmargin)
26+
# Julia is issuing a warning, this doesn't look to be necessary.
27+
# VariableNodeData(val::Array{Float64,2},
28+
# bw::Array{Float64,2},
29+
# BayesNetOutVertIDs::Array{Symbol,1},
30+
# dimIDs::Array{Int,1},
31+
# dims::Int,eliminated::Bool,
32+
# BayesNetVertID::Symbol,
33+
# separator::Array{Symbol,1},
34+
# softtype::T,
35+
# initialized::Bool,
36+
# inferdim::Float64,
37+
# ismargin::Bool,
38+
# dontmargin::Bool) where T <: InferenceVariable = VariableNodeData{T}(val,bw,BayesNetOutVertIDs,dimIDs,dims,eliminated,BayesNetVertID,separator,softtype::T,initialized,inferdim,ismargin,dontmargin)
4039

4140
function VariableNodeData()
4241
st = stacktrace()

test/plottingTest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct TestInferenceVariable1 <: InferenceVariable end
88
# Now make a complex graph for connectivity tests
99
numNodes = 10
1010
dfg = GraphsDFG{NoSolverParams}()
11-
verts = map(n -> DFGVariable(Symbol("x$n", TestInferenceVariable1())), 1:numNodes)
11+
verts = map(n -> DFGVariable(Symbol("x$n"), TestInferenceVariable1()), 1:numNodes)
1212
map(v -> addVariable!(dfg, v), verts)
1313
map(n -> addFactor!(dfg, [verts[n], verts[n+1]], DFGFactor{Int, :Symbol}(Symbol("x$(n)x$(n+1)f1"))), 1:(numNodes-1))
1414

0 commit comments

Comments
 (0)