From ab0eb1f497a029a26c3d00dca7c5b624a0801da3 Mon Sep 17 00:00:00 2001 From: wukan Date: Fri, 14 Jul 2023 09:30:46 +0800 Subject: [PATCH] Ignore length check --- bottleneck/src/move_template.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bottleneck/src/move_template.c b/bottleneck/src/move_template.c index 8a589703d..4d5682e01 100644 --- a/bottleneck/src/move_template.c +++ b/bottleneck/src/move_template.c @@ -989,6 +989,8 @@ mover(char *name, length = PyArray_DIM(a, axis); if ((window < 1) || (window > length)) { + return a; + PyErr_Format(PyExc_ValueError, "Moving window (=%d) must between 1 and %zu, inclusive", window, length);