Skip to content

Commit 11a40db

Browse files
boazmoharjoshmoore
authored andcommitted
blocks_to_decompress not used in read_part function (#861)
1 parent 81d7eec commit 11a40db

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
@@ -596,12 +596,6 @@ def read_part(self, start, nitems):
596596
assert self.buff is not None
597597
if self.nblocks == 1:
598598
return
599-
blocks_to_decompress = nitems / self.n_per_block
600-
blocks_to_decompress = (
601-
blocks_to_decompress
602-
if blocks_to_decompress == int(blocks_to_decompress)
603-
else int(blocks_to_decompress + 1)
604-
)
605599
start_block = int(start / self.n_per_block)
606600
wanted_decompressed = 0
607601
while wanted_decompressed < nitems:

0 commit comments

Comments
 (0)