@@ -71,33 +71,33 @@ StructUtils.@kwarg struct FactorDFG{T <: AbstractObservation, N} <: AbstractGrap
7171 tags:: Set{Symbol} = Set {Symbol} ([:FACTOR ])
7272 """ Ordered list of the neighbor variables.
7373 Accessors: [`getVariableOrder`](@ref)"""
74- variableorder:: NTuple{N, Symbol} & (choosetype= x-> NTuple{length (x), Symbol},) # NOTE v0.29 renamed from _variableOrderSymbols
74+ variableorder:: NTuple{N, Symbol} & (choosetype = x-> NTuple{length (x), Symbol},) # NOTE v0.29 renamed from _variableOrderSymbols
7575 """ Variable timestamp.
7676 Accessors: [`getTimestamp`](@ref)"""
77- timestamp:: NanoDate = ndnow (UTC) & (lower = timestamp,) # NOTE v0.29 changed from ZonedDateTime
77+ timestamp:: NanoDate = ndnow (UTC) & (lower = timestamp,) # NOTE v0.29 changed from ZonedDateTime
7878 # TODO
7979 # """(Optional) Steady (monotonic) time in nanoseconds `Nanosecond` (`Int64``)"""
8080 # nstime::Nanosecond #NOTE v0.29 REMOVED as not used, add when needed, or now as steadytime.
8181 """ Solvable flag for the factor.
8282 Accessors: [`getSolvable`](@ref), [`setSolvable!`](@ref)"""
83- solvable:: Base.RefValue{Int} = Ref (1 ) & (lower = getindex, lift = Ref)
83+ solvable:: Base.RefValue{Int} = Ref (1 ) & (lower = getindex, lift = Ref)
8484 """ Dictionary of small data associated with this variable.
8585 Accessors: [`getBloblet`](@ref), [`addBloblet!`](@ref)"""
8686 bloblets:: Bloblets = Bloblets () # NOTE v0.29 changed from smallData::Dict{Symbol, MetadataTypes} = Dict{Symbol, MetadataTypes}()
8787 """ Observation function or measurement for this factor.
8888 Accessors: [`getObservation`](@ref)(@ref)"""
89- observation:: T & (lower = pack_lower, choosetype= DFG. resolvePackedType)# TODO finalise serializd type
89+ observation:: T & (lower = pack_lower, choosetype = DFG. resolvePackedType)# TODO finalise serializd type
9090 """ Describes the current state of the factor. Persisted in serialization.
9191 Accessors: [`getFactorState`](@ref)"""
9292 state:: FactorState = FactorState ()
9393 """ Temporary, non-persistent memory used internally by the solver for intermediate numerical computations and buffers.
9494 `solvercache` is lazily allocated and only used during factor operations; it is not serialized or retained after solving.
9595 Accessors: [`getCache`](@ref), [`setCache!`](@ref)"""
96- solvercache:: Base.RefValue{<:FactorCache} = Ref {FactorCache} () & (ignore = true , )# TODO easy of use vs. performance as container is abstract in any case.
96+ solvercache:: Base.RefValue{<:FactorCache} = Ref {FactorCache} () & (ignore = true ,)# TODO easy of use vs. performance as container is abstract in any case.
9797 """ Blobentries associated with this factor."""
9898 blobentries:: Blobentries = Blobentries () # NOTE v0.29 added
9999 """ Internal: used for automatic type metadata generation."""
100- _autotype:: Nothing = nothing & (name = :type , lower = _ -> TypeMetadata (FactorDFG), )
100+ _autotype:: Nothing = nothing & (name = :type , lower = _ -> TypeMetadata (FactorDFG))
101101end
102102
103103version (:: Type{<:FactorDFG} ) = v " 0.29.0"
@@ -131,7 +131,10 @@ function FactorDFG(
131131 end
132132
133133 if timestamp isa ZonedDateTime
134- Base. depwarn (" `FactorDFG` timestamp as `ZonedDateTime` is deprecated, use `NanoDate` instead" , :FactorDFG )
134+ Base. depwarn (
135+ " `FactorDFG` timestamp as `ZonedDateTime` is deprecated, use `NanoDate` instead" ,
136+ :FactorDFG ,
137+ )
135138 timestamp = NanoDate (timestamp. utc_datetime)
136139 end
137140
@@ -174,7 +177,10 @@ function FactorDFG(
174177 Base. depwarn (" `FactorDFG` nstime is deprecated" , :FactorDFG )
175178 end
176179 if ! isnothing (smallData)
177- Base. depwarn (" `FactorDFG` smallData is deprecated, use bloblets instead" , :FactorDFG )
180+ Base. depwarn (
181+ " `FactorDFG` smallData is deprecated, use bloblets instead" ,
182+ :FactorDFG ,
183+ )
178184 end
179185
180186 if isnothing (cache)
@@ -185,7 +191,10 @@ function FactorDFG(
185191
186192 # deprecated in v0.29
187193 if timestamp isa ZonedDateTime
188- Base. depwarn (" `FactorDFG` timestamp as `ZonedDateTime` is deprecated, use `NanoDate(timestamp.utc_datetime)` instead" , :FactorDFG )
194+ Base. depwarn (
195+ " `FactorDFG` timestamp as `ZonedDateTime` is deprecated, use `NanoDate(timestamp.utc_datetime)` instead" ,
196+ :FactorDFG ,
197+ )
189198 nd_timestamp = NanoDate (timestamp. utc_datetime)
190199 else
191200 nd_timestamp = timestamp
282291# #==============================================================================
283292
284293function FactorSummary (f:: FactorDFG )
285- return FactorSummary (
286- f. label,
287- copy (f. tags),
288- f. variableorder,
289- f. timestamp,
290- )
294+ return FactorSummary (f. label, copy (f. tags), f. variableorder, f. timestamp)
291295end
292296
293297function FactorSkeleton (f:: AbstractGraphFactor )
294- return FactorSkeleton (
295- f. label,
296- copy (f. tags),
297- f. variableorder,
298- )
298+ return FactorSkeleton (f. label, copy (f. tags), f. variableorder)
299299end
0 commit comments