Skip to content

Commit

Permalink
Reverted change in the computation when masks elements are relative s…
Browse files Browse the repository at this point in the history
…maller than patch sizes
  • Loading branch information
fercer committed Mar 29, 2024
1 parent 8ca4afc commit 4720c76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zarrdataset/_samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)
Expand Down

0 comments on commit 4720c76

Please sign in to comment.