There is one hacky way to get this moving, and the package build with the patch. But not sure if it should be applied or not (as this is ugly)

I am not adding a patch tag for the same reason. Have also mentioned this as a comment in upstream issue.

--- a/bottleneck/slow/move.py
+++ b/bottleneck/slow/move.py
@@ -232,8 +232,9 @@
         # At least one dimension has length 0
         shape = list(a.shape)
         shape.pop(axis)
-        r = np.empty(shape, dtype=a.dtype)
+        r = np.empty(shape, dtype=float)
         r.fill(np.nan)
+        r = r.astype(a.dtype)
         if (r.ndim == 0) and (r.size == 1):
             r = np.nan
         return r

Reply via email to