From b6539687d13da8490866ee91efaa695ccd0e957a Mon Sep 17 00:00:00 2001 From: William Silversmith Date: Wed, 13 Nov 2024 14:13:19 -0500 Subject: [PATCH] fix: handle chunk_size is specified in ds_shape Numpy deprecation --- igneous/task_creation/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/igneous/task_creation/image.py b/igneous/task_creation/image.py index d72e79f..14fee11 100644 --- a/igneous/task_creation/image.py +++ b/igneous/task_creation/image.py @@ -244,7 +244,7 @@ def create_downsampling_tasks( """ def ds_shape(mip, chunk_size=None, factor=None): nonlocal num_mips - if chunk_size: + if chunk_size is not None: shape = Vec(*chunk_size) else: shape = vol.meta.chunk_size(mip)[:3]