Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix filename show #628

Merged
merged 4 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix filename show
  • Loading branch information
rafaqz committed Apr 8, 2024
commit 22f822d442e1c755bdb930db1372809ff5d8c02c
7 changes: 5 additions & 2 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ function print_geo(io, mime, A; blockwidth)
print(io, convert(String, mappedcrs(A)))
end
if isdisk(A)
printstyled(io, "\n filename: "; color=:light_black)
print(io, filename(A))
fn = filename(A)
if !(fn == "")
printstyled(io, "\n filename: "; color=:light_black)
print(io, )
end
end
println(io)
end
Expand Down
1 change: 1 addition & 0 deletions src/stack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ abstract type AbstractRasterStack{L} <: AbstractDimStack{L} end

missingval(stack::AbstractRasterStack) = getfield(stack, :missingval)
filename(stack::AbstractRasterStack) = filename(parent(stack))
filename(nt::NamedTuple) = ""
missingval(s::AbstractRasterStack, key::Symbol) = _singlemissingval(missingval(s), key)

isdisk(st::AbstractRasterStack) = isdisk(layers(st, 1))
Expand Down
Loading