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
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
Prev Previous commit
Next Next commit
fix type params
  • Loading branch information
rafaqz committed Apr 8, 2024
commit 0ee321027ebfdff4e7143c4b70b10d45b70a2842
4 changes: 2 additions & 2 deletions src/stack.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ subset without loading the whole array.
abstract type AbstractRasterStack{L} <: AbstractDimStack{L} end

missingval(stack::AbstractRasterStack) = getfield(stack, :missingval)
filename(stack::AbstractRasterStack{<:Any,<:Any,<:Any,<:NamedTuple}) = map(s -> filename(s), stack)
filename(stack::AbstractRasterStack{<:Any,<:Any,<:Any,<:Union{FileStack,OpenStack}}) = filename(parent(stack))
filename(stack::AbstractRasterStack{<:NamedTuple}) = map(s -> filename(s), stack)
filename(stack::AbstractRasterStack{<:Union{FileStack,OpenStack}}) = filename(parent(stack))
missingval(s::AbstractRasterStack, key::Symbol) = _singlemissingval(missingval(s), key)

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