Skip to content

Commit

Permalink
fix: no reference to sharding in the unsharded function
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Oct 3, 2023
1 parent 66f86b3 commit ee15a88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions igneous/task_creation/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def create_downsampling_tasks(
memory_target: size in bytes to target for memory usage
"""
def ds_shape(mip, chunk_size=None, factor=None):
nonlocal num_mips
if chunk_size:
shape = Vec(*chunk_size)
else:
Expand All @@ -243,9 +244,7 @@ def ds_shape(mip, chunk_size=None, factor=None):
if factor is None:
factor = downsample_scales.axis_to_factor(axis)

if sharding:
num_mips = 1
elif num_mips is None:
if num_mips is None:
num_mips = num_mips_from_memory_target(
memory_target, vol.dtype, shape, factor
)
Expand Down
2 changes: 1 addition & 1 deletion igneous_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def compute_bounds(path, mip, xrange, yrange, zrange):

@click.group()
@click.option("-p", "--parallel", default=1, help="Run with this number of parallel processes. If 0, use number of cores.")
@click.version_option(version="4.19.3")
@click.version_option(version="4.20.0")
@click.pass_context
def main(ctx, parallel):
"""
Expand Down

0 comments on commit ee15a88

Please sign in to comment.