update
This commit is contained in:
@@ -505,17 +505,19 @@ end
|
||||
|
||||
# Signature
|
||||
"""
|
||||
function disintegrate_vectorDict(data::Vector{Dict{T1, T2}}, partsize::Integer
|
||||
) where {T1<:Any, T2<:Any}
|
||||
function disintegrate_vectorDict(data::Vector, partsize::Integer
|
||||
)
|
||||
println("--> disintegrate_vectorDict()")
|
||||
parts = Dict{Int, Vector{Dict}}()
|
||||
for (i, dict) in enumerate(data)
|
||||
# println("--> disintegrate_vectorDict ", i)
|
||||
partkey = (i - 1) ÷ partsize + 1
|
||||
if !haskey(parts, partkey)
|
||||
parts[partkey] = Vector{Dict}()
|
||||
end
|
||||
push!(parts[partkey], dict)
|
||||
end
|
||||
return (datatype="vector{Dict}", totalparts=length(parts), partsize=partsize, data=parts)
|
||||
return (datatype="vector{Dict}", totalparts=length(parts), partsize=partsize, dataparts=parts)
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user