Skip to content

Commit 7ea6ab0

Browse files
authored
AbstractParams subtypes always without module (#1045)
1 parent bbffe82 commit 7ea6ab0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GraphsDFG/services/GraphsDFGSerialization.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using InteractiveUtils
1313
sessionBlobEntries::OrderedDict{Symbol, BlobEntry}
1414
addHistory::Vector{Symbol}
1515
solverParams::T
16-
solverParams_type::String = string(typeof(solverParams))
16+
solverParams_type::String = string(nameof(typeof(solverParams)))
1717
# TODO remove Union.Nothing in DFG v0.24
1818
typePackedVariable::Union{Nothing, Bool} = false # Are variables packed or full
1919
typePackedFactor::Union{Nothing, Bool} = false # Are factors packed or full
@@ -26,7 +26,7 @@ StructTypes.subtypekey(::Type{PackedGraphsDFG}) = :solverParams_type
2626

2727
function StructTypes.subtypes(::Type{PackedGraphsDFG})
2828
subs = subtypes(AbstractParams)
29-
return NamedTuple(map(s -> Symbol(s) => PackedGraphsDFG{s}, subs))
29+
return NamedTuple(map(s -> nameof(s) => PackedGraphsDFG{s}, subs))
3030
end
3131

3232
_variablestype(fg::GraphsDFG{<:AbstractParams, T, <:AbstractDFGFactor}) where {T} = T

0 commit comments

Comments
 (0)