From 4720c7642cbbdc7562377fadcf85d3cee356b148 Mon Sep 17 00:00:00 2001 From: Fernando Cervantes Sanchez Date: Fri, 29 Mar 2024 16:46:02 -0400 Subject: [PATCH] Reverted change in the computation when masks elements are relative smaller than patch sizes --- zarrdataset/_samplers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zarrdataset/_samplers.py b/zarrdataset/_samplers.py index b22bdea..a53aa6f 100644 --- a/zarrdataset/_samplers.py +++ b/zarrdataset/_samplers.py @@ -153,7 +153,7 @@ def _compute_grid(self, chunk_mask: np.ndarray, else: active_coordinates = np.meshgrid( - *[np.arange(round(image_size[ax] / ps)) + *[np.arange(image_size[ax] // ps) for ax, ps in zip(mask_axes, patch_shape) if ax in self.spatial_axes] )