Skip to content

blocks_to_decompress not used in read_part function #861

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions zarr/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down