[SciPy-user] NameError

Huang, Zhong Zhong.Huang at uth.tmc.edu
Mon Apr 10 18:06:47 CDT 2006


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

NameError: name 'args' is not defined

Could anybody help me out?

Thanks!



More information about the SciPy-user mailing list