Skip to content

Commit 7fc1c87

Browse files
committed
Add version
1 parent 55559d5 commit 7fc1c87

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
1616
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
1717
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1818
ManifoldsBase = "3362f125-f0bb-47a3-aa74-596ffd7ef2fb"
19+
NanoDates = "46f1a544-deae-4307-8689-c12aa3c955c6"
1920
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
2021
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
2122
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
@@ -56,6 +57,7 @@ JSON = "1.0.0"
5657
LieGroups = "0.1"
5758
LinearAlgebra = "1.10"
5859
ManifoldsBase = "1, 2"
60+
NanoDates = "1.0.3"
5961
OrderedCollections = "1.4"
6062
Pkg = "1.4, 1.5"
6163
ProgressMeter = "1"

src/DataBlobs/entities/BlobEntry.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,17 @@ StructUtils.@kwarg struct Blobentry
3939
size::Int64 = -1 & (json=(lower = string, lift = x->parse(Int64, x)))
4040
""" Additional information that can help a different user of the Blob. """
4141
description::String = ""
42-
""" MIME description describing the format of binary data in the `Blob`, e.g. 'image/png' or 'application/json; _type=CameraModel'. """
42+
""" MIME description describing the format of binary data in the `Blob`, e.g. 'image/png' or 'application/json'. """
4343
mimetype::String = "application/octet-stream" #FIXME ::MIME = MIME("application/octet-stream")
4444
""" Storage for a couple of bytes directly in the graph. Use with caution and keep it small and simple."""
4545
metadata::JSONText = JSONText("")
4646
""" When the Blob itself was first created. Serialized as an ISO 8601 string."""
47-
timestamp::ZonedDateTime = now(localzone())
47+
timestamp::NanoDate = ndnow(UTC) & (json = (lower = timestamp,),)
4848
""" Type version of this Blobentry."""
49-
version::VersionNumber = _getDFGVersion()
49+
version::VersionNumber = version(Blobentry)
5050
end
51+
version(::Type{Blobentry}) = v"0.1.0"
52+
version(node) = node.version
5153

5254
function Blobentry(label::Symbol, blobstore = :default; kwargs...)
5355
return Blobentry(; label, blobstore, kwargs...)

src/DistributedFactorGraphs.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ using DocStringExtensions
2020
using Dates
2121
using Random
2222
using TimeZones
23+
using NanoDates
2324
using JSON
2425
using LinearAlgebra
2526
using SparseArrays

src/entities/DFGFactor.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const FactorCache = AbstractFactorCache #
2626

2727
#TODO is this mutable
2828
@kwdef mutable struct FactorState
29-
eliminated::Bool = false
30-
potentialused::Bool = false
29+
eliminated::Bool = false # TODO should eliminated and potentialused be moved outside of FactorState?
30+
potentialused::Bool = false # TODO ^
3131
multihypo::Vector{Float64} = Float64[] # TODO re-evaluate after refactoring w #477
3232
certainhypo::Vector{Int} = Int[]
3333
nullhypo::Float64 = 0.0

0 commit comments

Comments
 (0)