[Numpy-discussion] Re: Code Question

Robert Kern robert.kern at gmail.com
Sun Apr 16 14:26:06 CDT 2006

Saqib bin Sohail wrote:

> An Pierre, I started reading diveintopython.pdf but got nowhere when I tried
> two of its examples, the attached image shows that when I tried to run one of
> the examples on python-2.3 and the output wasn't according to what the guide
> suggested. (no output to be precise)
> http://jobim.colorado.edu/~sohail/pythonExample.JPG

Note the indentation. Indentation is important in Python.

> Quoting Ryan Krauss <ryanlists at gmail.com>:

>>(I don't have the latest version of numpy and don't seem to have the
>>refft function Robert mentioned).

My example was wrong. It should have used "numpy.dft.refft()", not "numpy.refft()".

Robert Kern
robert.kern at gmail.com

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

More information about the Numpy-discussion mailing list