problem with decimate in scipy 0.18
I have found the bug !
n2 is indeed a integer in my case, but its not an int()

print(type(n2)) gives:   &lt;class 'numpy.int64'&gt;   !!!

In the previous version of scipy, it was already a numpy.int64 but it was working correctly.

Maybe a test slightly too stringent...

Thanks for helping everyone.