Skip to content

Commit c89d00c

Browse files
committed
Fix AbstractVectorOfArray printing
1 parent f008461 commit c89d00c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vector_of_array.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ Base.vec(VA::AbstractVectorOfArray) = vec(convert(Array,VA)) # Allocates
129129
@inline Statistics.cor(VA::AbstractVectorOfArray;kwargs...) = cor(Array(VA);kwargs...)
130130

131131
# make it show just like its data
132-
Base.show(io::IO, x::AbstractVectorOfArray) = show(io, x.u)
133-
Base.show(io::IO, m::MIME"text/plain", x::AbstractVectorOfArray) = show(io, m, x.u)
132+
Base.show(io::IO, x::AbstractVectorOfArray) = Base.print_array(io, x.u)
133+
Base.show(io::IO, m::MIME"text/plain", x::AbstractVectorOfArray) = (println(io, summary(x), ':'); show(io, m, x.u))
134134
Base.summary(A::AbstractVectorOfArray) = string("VectorOfArray{",eltype(A),",",ndims(A),"}")
135135

136136
Base.show(io::IO, x::AbstractDiffEqArray) = (print(io,"t: ");show(io, x.t);println(io);print(io,"u: ");show(io, x.u))

0 commit comments

Comments
 (0)