From 8ebef6bafefecde9b50c6cd50d34d50b84d96ad2 Mon Sep 17 00:00:00 2001 From: femtotrader Date: Fri, 12 Oct 2018 16:46:47 +0200 Subject: [PATCH] Update show.jl (#29) Close #28 --- src/show.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/show.jl b/src/show.jl index 002fda4..0e5f5f2 100644 --- a/src/show.jl +++ b/src/show.jl @@ -45,10 +45,10 @@ hasnegs(X::Matrix)::Vector{Bool} = [hasnegs(X[:,j]) for j in 1:size(X,2)] function show(io::IO, X::TS, padding::Int=PADDING, digits::Int=DECIMALS)::Nothing # print summary of data structure if (isempty(X)) - print("Empty $(typeof(X))\n") + print(io, "Empty $(typeof(X))\n") return nothing else - print("$(size(X,1))x$(size(X,2)) $(typeof(X)): $(X.index[1]) to $(X.index[end])\n\n") + print(io, "$(size(X,1))x$(size(X,2)) $(typeof(X)): $(X.index[1]) to $(X.index[end])\n\n") end # partition rows if data too large toprows, bottomrows = getshowrows(io, X)