We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb21c74 commit ff5fbdaCopy full SHA for ff5fbda
src/componentarray.jl
@@ -60,7 +60,7 @@ end
60
# Entry from NamedTuple, Dict, or kwargs
61
ComponentArray{T}(nt::NamedTuple) where T = ComponentArray(make_carray_args(T, nt)...)
62
ComponentArray(nt::NamedTuple) = ComponentArray(make_carray_args(nt)...)
63
-ComponentArray(d::AbstractDict) = ComponentArray(NamedTuple(d))
+ComponentArray(d::AbstractDict) = ComponentArray(NamedTuple{Tuple(keys(d))}(values(d)))
64
ComponentArray{T}(;kwargs...) where T = ComponentArray{T}((;kwargs...))
65
ComponentArray(;kwargs...) = ComponentArray((;kwargs...))
66
0 commit comments