[SciPy-user] NameError

Robert Kern robert.kern at gmail.com
Mon Apr 10 18:21:08 CDT 2006

Huang, Zhong wrote:
> Hi, I am trying to use least-squares procedure 
> of scipy. I encountered NameError problem:
> from scipy.optimize import leastsq
> plsq=leastsq(residuals,p0,args(y_meas,x))

You are missing an equals sign.


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 SciPy-user mailing list