[SciPy-user] NameError

Huang, Zhong Zhong.Huang at uth.tmc.edu
Mon Apr 10 18:22:57 CDT 2006


Yes, thank you, Robert.

 Zhong


-----Original Message-----
From: scipy-user-bounces at scipy.net on behalf of Robert Kern
Sent: Mon 4/10/2006 6:21 PM
To: SciPy Users List
Subject: Re: [SciPy-user] NameError
 
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.

plsq=leastsq(residuals,p0,args=(y_meas,x))

-- 
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

_______________________________________________
SciPy-user mailing list
SciPy-user at scipy.net
http://www.scipy.net/mailman/listinfo/scipy-user

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2755 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20060410/28685339/attachment.bin


More information about the SciPy-user mailing list