[Numpy-discussion] performance of the numpy

Christopher Barker Chris.Barker@noaa....
Wed Sep 24 17:37:03 CDT 2008

Nadav Horesh wrote:
> You should use absolute (a ufunc) and not abs (internal python function):
>>>> plot(absolute(fft(b)))

another reason why "import *" is a bad idea:

import numpy as np
import pylab as plot  #(what is the convention for this now?)


yes, it's more typing, but you'll never get confused as to what module 
functions come from.


Christopher Barker, Ph.D.

NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

More information about the Numpy-discussion mailing list