[SciPy-user] Type error in signaltools.py?

Travis Oliphant oliphant at ee.byu.edu
Fri Jan 20 17:18:15 CST 2006


Paul Ray wrote:

>Hi,
>
>I'm running scipy on Python2.4.2 and I found the following issue:
>
>Line 1353 of signal/signaltools.py is currently:
>         ret = reshape(newdata,tdshape)
>This crashes with a TypeError:
>*** TypeError: Array can not be safely cast to required type
>
>I think the line should correctly be:
>         ret = reshape(newdata,tuple(tdshape))
>
>Is this a change that happened between Python2.3 and Python2.4?
>
>I found this problem in scipy 0.3.2, but the source line is the same  
>in the current SVN version of scipy.
>
>  
>
Thanks.  Fixed in SVN.  But we should figure out why tdshape could not 
be interpreted as PyArray_INTP

-Travis



More information about the SciPy-user mailing list