Skip to content

Commit 1d821d4

Browse files
authored
blocks_to_decompress not used in read_part function (#861)
1 parent 4e6e0b2 commit 1d821d4

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

zarr/util.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -605,12 +605,6 @@ def read_part(self, start, nitems):
605605
assert self.buff is not None
606606
if self.nblocks == 1:
607607
return
608-
blocks_to_decompress = nitems / self.n_per_block
609-
blocks_to_decompress = (
610-
blocks_to_decompress
611-
if blocks_to_decompress == int(blocks_to_decompress)
612-
else int(blocks_to_decompress + 1)
613-
)
614608
start_block = int(start / self.n_per_block)
615609
wanted_decompressed = 0
616610
while wanted_decompressed < nitems:

0 commit comments

Comments
 (0)