Skip to content

Commit

Permalink
fix: downsampling should not affect the current mips encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Jan 10, 2024
1 parent 369eb32 commit 979ec66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion igneous/task_creation/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def ds_shape(mip, chunk_size=None, factor=None):
encoding=encoding, factor=factor
)

for mip_i in range(mip, min(mip + num_mips, len(vol.available_mips))):
for mip_i in range(mip+1, min(mip + num_mips, len(vol.available_mips))):
set_encoding(vol, mip_i, encoding, encoding_level)
vol.commit_info()

Expand Down

0 comments on commit 979ec66

Please sign in to comment.