Skip to content

Commit 76a1aef

Browse files
authored
Merge pull request #346 from JuliaRobotics/fix/1Q20/345
save multihypo,
2 parents 2e8bc41 + 5b9f102 commit 76a1aef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/FileDFG/services/FileDFG.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function saveDFG(dfg::AbstractDFG, folder::String; compress::Symbol=:null)
2222
if compress != :null
2323
@warn "saveDFG keyword args are deprecated, and folders will be tarred as standard in current and future versions."
2424
end
25-
25+
2626
# TODO: Deprecate the folder functionality in v0.6.1
2727

2828
# Clean up save path if a file is specified

src/entities/DFGFactor.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ mutable struct GenericFunctionNodeData{T, S}
2727
edgeIDs::Array{Int,1}
2828
frommodule::S #Union{Symbol, AbstractString}
2929
fnc::T
30-
multihypo::String # likely to moved when GenericWrapParam is refactored
30+
multihypo::Array{Float64} # likely to moved when GenericWrapParam is refactored
3131
certainhypo::Vector{Int}
3232
solveInProgress::Int
3333
GenericFunctionNodeData{T, S}() where {T, S} = new{T,S}()
34-
GenericFunctionNodeData{T, S}(x1, x2, x3, x4, x5::S, x6::T, x7::String="", x8::Vector{Int}=Int[], x9::Int=0) where {T, S} = new{T,S}(x1, x2, x3, x4, x5, x6, x7, x8, x9)
35-
GenericFunctionNodeData(x1, x2, x3, x4, x5::S, x6::T, x7::String="", x8::Vector{Int}=Int[], x9::Int=0) where {T, S} = new{T,S}(x1, x2, x3, x4, x5, x6, x7, x8, x9)
34+
GenericFunctionNodeData{T, S}(x1, x2, x3, x4, x5::S, x6::T, multihypo::Vector{<:Real}=Float64[], certainhypo::Vector{Int}=Int[], x9::Int=0) where {T, S} = new{T,S}(x1, x2, x3, x4, x5, x6, multihypo, certainhypo, x9)
35+
GenericFunctionNodeData(x1, x2, x3, x4, x5::S, x6::T, multihypo::Vector{<:Real}=Float64[], certainhypo::Vector{Int}=Int[], x9::Int=0) where {T, S} = new{T,S}(x1, x2, x3, x4, x5, x6, multihypo, certainhypo, x9)
3636
# GenericFunctionNodeData(x1, x2, x3, x4, x5::S, x6::T, x7::String) where {T, S} = new{T,S}(x1, x2, x3, x4, x5, x6, x7)
3737
end
3838

@@ -43,9 +43,9 @@ end
4343

4444
# Simply for convenience - don't export, TODO Its used in IIF so maybe it should be exported
4545
const PackedFunctionNodeData{T} = GenericFunctionNodeData{T, <: AbstractString}
46-
PackedFunctionNodeData(x1, x2, x3, x4, x5::S, x6::T, x7::String="", x8::Vector{Int}=Int[], x9::Int=0) where {T <: PackedInferenceType, S <: AbstractString} = GenericFunctionNodeData(x1, x2, x3, x4, x5, x6, x7, x8, x9)
46+
PackedFunctionNodeData(x1, x2, x3, x4, x5::S, x6::T, multihypo::Vector{Float64}=[], certainhypo::Vector{Int}=Int[], x9::Int=0) where {T <: PackedInferenceType, S <: AbstractString} = GenericFunctionNodeData(x1, x2, x3, x4, x5, x6, multihypo, certainhypo, x9)
4747
const FunctionNodeData{T} = GenericFunctionNodeData{T, Symbol}
48-
FunctionNodeData(x1, x2, x3, x4, x5::Symbol, x6::T, x7::String="", x8::Vector{Int}=Int[], x9::Int=0) where {T <: Union{FunctorInferenceType, ConvolutionObject}}= GenericFunctionNodeData{T, Symbol}(x1, x2, x3, x4, x5, x6, x7, x8, x9)
48+
FunctionNodeData(x1, x2, x3, x4, x5::Symbol, x6::T, multihypo::Vector{Float64}=[], certainhypo::Vector{Int}=Int[], x9::Int=0) where {T <: Union{FunctorInferenceType, ConvolutionObject}}= GenericFunctionNodeData{T, Symbol}(x1, x2, x3, x4, x5, x6, multihypo, certainhypo, x9)
4949

5050
##==============================================================================
5151
## Factors

0 commit comments

Comments
 (0)