Skip to content

Commit

Permalink
Update show.jl (#29)
Browse files Browse the repository at this point in the history
Close #28
  • Loading branch information
femtotrader authored and dysonance committed Oct 12, 2018
1 parent ac39a01 commit 8ebef6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8ebef6b

Please sign in to comment.