Skip to content
Snippets Groups Projects

improve generated code for import

Merged Jonas Isensee requested to merge importimprovements into dev
2 unresolved threads
1 file
+ 3
7
Compare changes
  • Side-by-side
  • Inline
+ 3
7
@@ -351,9 +351,9 @@ module ExportUtils
@@ -351,9 +351,9 @@ module ExportUtils
deserialize(::Any, @nospecialize(a::Type); kwargs...) = error("InPartS: no deserializer defined for type $a")
deserialize(::Any, @nospecialize(a::Type); kwargs...) = error("InPartS: no deserializer defined for type $a")
"""
"""
deserializefromdict(dict, stype = Any; [sim::Simulation, mod::Module]) → Vector{T} where {T<:AbstractParticle}
deserializefromdict(dict::AbstractDict, stype = Any; [sim::Simulation, mod::Module]) → Vector{T} where {T<:AbstractParticle}
deserializefromdict(dict, stype = Any; [mod::Module]) → T
deserializefromdict(dict::AbstractDict, stype = Any; [mod::Module]) → T
deserializefromdict(notadict::T, ::Type{T},; [mod::Module]) where {T} = notadict
deserializefromdict(notadict, stype = Any; kwargs...) → notadict
The reverse operation of [`serializetodict`](@ref). Deserializes the `dict` into either a vector or
The reverse operation of [`serializetodict`](@ref). Deserializes the `dict` into either a vector or
a single instance of the type T saved in `dict["$(STRUCTTYPE)"]`, depending on whether `T` has
a single instance of the type T saved in `dict["$(STRUCTTYPE)"]`, depending on whether `T` has
@@ -370,10 +370,6 @@ module ExportUtils
@@ -370,10 +370,6 @@ module ExportUtils
deserializefromdict(dict::AbstractDict, stype = Any; mod::Module = Main, kwargs...) = deserialize(dict, InPartS.reconstruct_subtype(dict[STRUCTTYPE], stype; mod); kwargs...)
deserializefromdict(dict::AbstractDict, stype = Any; mod::Module = Main, kwargs...) = deserialize(dict, InPartS.reconstruct_subtype(dict[STRUCTTYPE], stype; mod); kwargs...)
deserializefromdict(notadict, stype=Any; kwargs...) = notadict
deserializefromdict(notadict, stype=Any; kwargs...) = notadict
"""
collectvectors(vector::Vector{<:AbstractParticle}) → Dict{String, Any}
# this is for save callbacks but I put it here because I don't want these words to be reserved in the main InPartS namespace
# this is for save callbacks but I put it here because I don't want these words to be reserved in the main InPartS namespace
@enum OnConflict fail skip compare overwrite
@enum OnConflict fail skip compare overwrite
Loading