You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/services/Serialization.jl
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ end
25
25
function_versionCheck(props::Dict{String, Any})
26
26
ifhaskey(props, "_version")
27
27
if props["_version"] !=_getDFGVersion()
28
-
@warn"This data was serialized using DFG $(props["_version"]) but you have $(_getDFGVersion()) installed, there may be deserialization issues."
28
+
@warn"This data was serialized using DFG $(props["_version"]) but you have $(_getDFGVersion()) installed, there may be deserialization issues." maxlog=10
29
29
end
30
30
else
31
31
@warn"There isn't a version tag in this data so it's older than v0.10, there may be deserialization issues."
@@ -442,9 +442,13 @@ end
442
442
443
443
444
444
# Returns `::DFGFactor`
445
-
functionunpackFactor(dfg::G, packedProps::Dict{String, Any}) where G <:AbstractDFG
445
+
functionunpackFactor(
446
+
dfg::G,
447
+
packedProps::Dict{String, Any};
448
+
skipVerionCheck::Bool=false
449
+
) where G <:AbstractDFG
446
450
# Version checking.
447
-
_versionCheck(packedProps)
451
+
!skipVersionCheck &&_versionCheck(packedProps)
448
452
449
453
label = packedProps["label"]
450
454
# Make sure that the timestamp is correctly formatted with subseconds
0 commit comments