From 7ea6ab02db686276d9e43c44c396fb75880ab37f Mon Sep 17 00:00:00 2001 From: Johannes Terblanche <6612981+Affie@users.noreply.github.com> Date: Thu, 31 Aug 2023 12:45:56 +0200 Subject: [PATCH] AbstractParams subtypes always without module (#1045) --- src/GraphsDFG/services/GraphsDFGSerialization.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GraphsDFG/services/GraphsDFGSerialization.jl b/src/GraphsDFG/services/GraphsDFGSerialization.jl index 2a9c6332..ac134b8e 100644 --- a/src/GraphsDFG/services/GraphsDFGSerialization.jl +++ b/src/GraphsDFG/services/GraphsDFGSerialization.jl @@ -13,7 +13,7 @@ using InteractiveUtils sessionBlobEntries::OrderedDict{Symbol, BlobEntry} addHistory::Vector{Symbol} solverParams::T - solverParams_type::String = string(typeof(solverParams)) + solverParams_type::String = string(nameof(typeof(solverParams))) # TODO remove Union.Nothing in DFG v0.24 typePackedVariable::Union{Nothing, Bool} = false # Are variables packed or full typePackedFactor::Union{Nothing, Bool} = false # Are factors packed or full @@ -26,7 +26,7 @@ StructTypes.subtypekey(::Type{PackedGraphsDFG}) = :solverParams_type function StructTypes.subtypes(::Type{PackedGraphsDFG}) subs = subtypes(AbstractParams) - return NamedTuple(map(s -> Symbol(s) => PackedGraphsDFG{s}, subs)) + return NamedTuple(map(s -> nameof(s) => PackedGraphsDFG{s}, subs)) end _variablestype(fg::GraphsDFG{<:AbstractParams, T, <:AbstractDFGFactor}) where {T} = T