@@ -217,6 +217,8 @@ getEstimateFields(::MeanMaxPPE) = [:suggested, :max, :mean]
217
217
# # DFG Variables
218
218
# #==============================================================================
219
219
220
+ const SmallDataType = Union{Int, Float64, String, Bool, Vector{Int}, Vector{Float64}, Vector{String}, Vector{Bool}}
221
+
220
222
# #------------------------------------------------------------------------------
221
223
# # DFGVariable lv2
222
224
# #------------------------------------------------------------------------------
@@ -248,7 +250,7 @@ struct DFGVariable{T<:InferenceVariable} <: AbstractDFGVariable
248
250
solverDataDict:: Dict{Symbol, VariableNodeData{T}}
249
251
""" Dictionary of small data associated with this variable.
250
252
Accessors: [`getSmallData`](@ref), [`setSmallData!`](@ref)"""
251
- smallData:: Dict{String, String} # Ref{Dict{String, String}} #why was Ref here?
253
+ smallData:: Dict{String, SmallDataType}
252
254
""" Dictionary of large data associated with this variable.
253
255
Accessors: [`addDataEntry!`](@ref), [`getDataEntry`](@ref), [`updateDataEntry!`](@ref), and [`deleteDataEntry!`](@ref)"""
254
256
dataDict:: Dict{Symbol, AbstractDataEntry}
@@ -270,7 +272,7 @@ function DFGVariable(label::Symbol, softtype::T;
270
272
tags:: Set{Symbol} = Set {Symbol} (),
271
273
estimateDict:: Dict{Symbol, <: AbstractPointParametricEst} = Dict {Symbol, MeanMaxPPE} (),
272
274
solverDataDict:: Dict{Symbol, VariableNodeData{T}} = Dict {Symbol, VariableNodeData{T}} (),
273
- smallData:: Dict{String, String } = Dict {String, String } (),
275
+ smallData:: Dict{String, SmallDataType } = Dict {String, SmallDataType } (),
274
276
dataDict:: Dict{Symbol, AbstractDataEntry} = Dict {Symbol,AbstractDataEntry} (),
275
277
solvable:: Int = 1 ) where {T <: InferenceVariable }
276
278
@@ -287,7 +289,7 @@ function DFGVariable(label::Symbol,
287
289
nstime:: Nanosecond = Nanosecond (0 ),
288
290
tags:: Set{Symbol} = Set {Symbol} (),
289
291
estimateDict:: Dict{Symbol, <: AbstractPointParametricEst} = Dict {Symbol, MeanMaxPPE} (),
290
- smallData:: Dict{String, String } = Dict {String, String } (),
292
+ smallData:: Dict{String, SmallDataType } = Dict {String, SmallDataType } (),
291
293
dataDict:: Dict{Symbol, AbstractDataEntry} = Dict {Symbol,AbstractDataEntry} (),
292
294
solvable:: Int = 1 ) where {T <: InferenceVariable }
293
295
if timestamp isa DateTime
0 commit comments