From 0220cb43a35c1857b9b25c764ba7cd13958730b8 Mon Sep 17 00:00:00 2001 From: Roy Smart Date: Mon, 21 Oct 2024 22:38:21 -0600 Subject: [PATCH] more macos testing --- ndfilters/_convolve.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ndfilters/_convolve.py b/ndfilters/_convolve.py index 76c186d..436eb97 100644 --- a/ndfilters/_convolve.py +++ b/ndfilters/_convolve.py @@ -189,7 +189,7 @@ def _convolve_1d( if where[it, jx]: array_tx = array[it, jx] - kernel_tx = kernel[it, ~kx] + kernel_tx = kernel[it, kx] r += array_tx * kernel_tx result[it, ix] = r @@ -247,7 +247,7 @@ def _convolve_2d( if where[it, jx, jy]: array_txy = array[it, jx, jy] - kernel_txy = kernel[it, ~kx, ~ky] + kernel_txy = kernel[it, kx, ky] r += array_txy * kernel_txy result[it, ix, iy] = r @@ -320,7 +320,7 @@ def _convolve_3d( if where[it, jx, jy, jz]: array_txyz = array[it, jx, jy, jz] - kernel_txyz = kernel[it, ~kx, ~ky, ~kz] + kernel_txyz = kernel[it, kx, ky, kz] r += array_txyz * kernel_txyz result[it, ix, iy, iz] = r