File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
1616JSON = " 682c06a0-de6a-54ab-a142-c8b1cf79cde6"
1717LinearAlgebra = " 37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1818ManifoldsBase = " 3362f125-f0bb-47a3-aa74-596ffd7ef2fb"
19+ NanoDates = " 46f1a544-deae-4307-8689-c12aa3c955c6"
1920OrderedCollections = " bac558e1-5e72-5ebc-8fee-abe8a469f55d"
2021Pkg = " 44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
2122ProgressMeter = " 92933f4c-e287-5a05-a399-4b506db050ca"
@@ -56,6 +57,7 @@ JSON = "1.0.0"
5657LieGroups = " 0.1"
5758LinearAlgebra = " 1.10"
5859ManifoldsBase = " 1, 2"
60+ NanoDates = " 1.0.3"
5961OrderedCollections = " 1.4"
6062Pkg = " 1.4, 1.5"
6163ProgressMeter = " 1"
Original file line number Diff line number Diff 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 )
5050end
51+ version (:: Type{Blobentry} ) = v " 0.1.0"
52+ version (node) = node. version
5153
5254function Blobentry (label:: Symbol , blobstore = :default ; kwargs... )
5355 return Blobentry (; label, blobstore, kwargs... )
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ using DocStringExtensions
2020using Dates
2121using Random
2222using TimeZones
23+ using NanoDates
2324using JSON
2425using LinearAlgebra
2526using SparseArrays
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments