[SciPy-user] NameError

Travis Oliphant oliphant at ee.byu.edu
Mon Apr 10 18:15:00 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
>NameError: name 'args' is not defined
>Could anybody help me out?

I think you mean:

args = (y_meas, x)




More information about the SciPy-user mailing list