Skip to content

Commit

Permalink
chunking for SubVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Barth committed Sep 29, 2023
1 parent cfac020 commit 4930ba8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/subvariable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,11 @@ function dataset(v::SubVariable)
indices = (;((Symbol(d),i) for (d,i) in zip(dimnames(v),v.indices))...)
return SubDataset(dataset(v.parent),indices)
end

function chunking(v::SubVariable)
storage, chunksizes = chunking(v.parent)
return storage, min.(chunksizes,collect(size(v)))
end

deflate(v::SubVariable) = deflate(v.parent)
checksum(v::SubVariable) = checksum(v.parent)

0 comments on commit 4930ba8

Please sign in to comment.