-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
@behinger
At the moment, the Simulation struct is defined with the field "components" which is a Union of either a Dictionary(Char, Vector(AbstractComponent)) or an Vector(AbstractComponent). As it is not possible for a Dictionary to allow the inheritance of Vector(AbstractComponent), the Dictionary must be replaced by a NamedTuple.
This has to be done in the several lines of code:
Line 17 in 73425fa
<:Dict{<:Char,<:Vector{<:AbstractComponent}}, |
Line 94 in 73425fa
maxoffset(d::Dict{<:Char,<:Vector{<:AbstractComponent}}) = maximum(maxoffset.(values(d))) |
Line 96 in 73425fa
minoffset(d::Dict{<:Char,<:Vector{<:AbstractComponent}}) = minimum(minoffset.(values(d))) |
and possible more...
Metadata
Metadata
Assignees
Labels
No labels