[SciPy-dev] bug in scipy.ndimage.interpolation.zoom ?

Nicolas Rougier Nicolas.Rougier at loria.fr
Fri Feb 20 10:44:37 EST 2009



Hello,

>From the following script:

import numpy
from scipy.ndimage.interpolation import zoom
n = 5
Z = numpy.ones((n))
print Z
print zoom(Z,1,order=0)
print zoom(Z.reshape((1,n)),(1,1),order=0)

I get the following result:

[ 1.  1.  1.  1.  1.]
[ 1.  1.  1.  1.  1.]
[[ 0.  0.  0.  0.  0.]]


Is that the expected behavior ?


Nicolas




More information about the SciPy-Dev mailing list