Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Sep 24, 2024
1 parent bc20233 commit 6822a72
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,28 +52,15 @@ function Base.summary(io::IO, ser::AbstractRasterSeries{T,N}) where {T,N}
else
print(io, join(size(ser), "×"), " ")
end
print(io, _series_eltype_string(ser))
return nothing
print(io, string(nameof(typeof(ser)), "{$(nameof(T)),$N}"))
end

function DD.show_after(io::IO, mime, ser::AbstractRasterSeries; kw...)
if length(ser) > 0
function DD.show_after(io::IO, mime, series::AbstractRasterSeries; kw...)
if length(series) > 0
blockwidth = get(io, :blockwidth, 0)
end
if length(ser) > 0
DD.print_block_separator(io, "holding objects", blockwidth)
println(io)
show(io, mime, first(ser))
println(io)
println(io)
DD.print_block_close(io, blockwidth)
println(io)
T = _series_eltype_string(ser)
DD.print_array(io, mime, map(_ -> true, ser))
else
print_geo(io, mime, first(series); blockwidth)
DD.print_block_close(io, blockwidth)
end
ndims(series) > 0 && println(io)
DD.print_array(io, mime, series)
end

_series_eltype_string(ser::AbstractRasterSeries{T,N}) where {T,N} =
string(nameof(typeof(ser)), "{$(nameof(T)),$N}")

0 comments on commit 6822a72

Please sign in to comment.