Skip to content

Commit

Permalink
do not update chunk shape if actual data is smaller (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul authored Sep 13, 2024
1 parent f118d95 commit ee2081b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/z5/metadata.hxx
Original file line number Diff line number Diff line change
@@ -252,12 +252,6 @@ namespace z5 {
if(shape.size() != chunkShape.size()) {
throw std::runtime_error("Dimension of shape and chunks does not agree");
}
// if the chunk-shape is bigger than the shape in any dimension, we set it to the shape
for(unsigned d = 0; d < shape.size(); ++d) {
if(chunkShape[d] > shape[d]) {
chunkShape[d] = shape[d];
}
}
}


0 comments on commit ee2081b

Please sign in to comment.