From ee2081bb974fe0d0d702538400c31c38b09f1629 Mon Sep 17 00:00:00 2001 From: Sameeul Bashir Samee Date: Fri, 13 Sep 2024 09:30:09 -0400 Subject: [PATCH] do not update chunk shape if actual data is smaller (#232) --- include/z5/metadata.hxx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/z5/metadata.hxx b/include/z5/metadata.hxx index 4a0f06c..b50acc1 100644 --- a/include/z5/metadata.hxx +++ b/include/z5/metadata.hxx @@ -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]; - } - } }