[Numpy-discussion] can't take FFT of ndarray

Matthieu Brucher matthieu.brucher@gmail....
Fri Mar 6 17:23:35 CST 2009


This indicates that the values are strings, so you can't make an FFT
from them. Convert your array to float or double array first.

Matthieu

2009/3/7 charles reid <charlesreid1@gmail.com>:
> In [3]: mixfracarray=array(mixfrac)
>
> In [4]: mixfracarray.dtype
> Out[4]: dtype('|S17')
>
>
>
> On Fri, Mar 6, 2009 at 4:09 PM, Charles R Harris <charlesr.harris@gmail.com>
> wrote:
>>
>>
>> On Fri, Mar 6, 2009 at 3:51 PM, charles reid <charlesreid1@gmail.com>
>> wrote:
>>>
>>> In [3]: type(mixfrac)
>>> Out[3]: <type 'list'>
>>>
>>> In [4]: mixfracarray=array(mixfrac)
>>>
>>> In [5]: type(mixfracarray)
>>> Out[5]: <type 'numpy.ndarray'>
>>>
>>
>> Try mixfracarray.dtype ...Chuck
>>
>> <snip>
>>
>>
>>
>> _______________________________________________
>> Numpy-discussion mailing list
>> Numpy-discussion@scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
>
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>



-- 
Information System Engineer, Ph.D.
Website: http://matthieu-brucher.developpez.com/
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn: http://www.linkedin.com/in/matthieubrucher


More information about the Numpy-discussion mailing list