Skip to content

Commit

Permalink
AbstractParams subtypes always without module (#1045)
Browse files Browse the repository at this point in the history
  • Loading branch information
Affie authored Aug 31, 2023
1 parent bbffe82 commit 7ea6ab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GraphsDFG/services/GraphsDFGSerialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7ea6ab0

Please sign in to comment.