From 5b400feb4dd45d62a5a2c5cb42ab54d93b971fef Mon Sep 17 00:00:00 2001 From: Boaz Mohar Date: Wed, 27 Oct 2021 08:20:40 -0400 Subject: [PATCH] blocks_to_decompress not used in read_part function --- zarr/util.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/zarr/util.py b/zarr/util.py index d092ffe0de..ae2ad19b28 100644 --- a/zarr/util.py +++ b/zarr/util.py @@ -605,12 +605,6 @@ def read_part(self, start, nitems): assert self.buff is not None if self.nblocks == 1: return - blocks_to_decompress = nitems / self.n_per_block - blocks_to_decompress = ( - blocks_to_decompress - if blocks_to_decompress == int(blocks_to_decompress) - else int(blocks_to_decompress + 1) - ) start_block = int(start / self.n_per_block) wanted_decompressed = 0 while wanted_decompressed < nitems: