[SciPy-user] NameError

Huang, Zhong Zhong.Huang at uth.tmc.edu
Mon Apr 10 18:21:28 CDT 2006

Quite right.
I tried 
it works, too.

Thank you, Travis.

-----Original Message-----
From: scipy-user-bounces at scipy.net on behalf of Travis Oliphant
Sent: Mon 4/10/2006 6:15 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
>NameError: name 'args' is not defined
>Could anybody help me out?

I think you mean:

args = (y_meas, x)




SciPy-user mailing list
SciPy-user at scipy.net

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

More information about the SciPy-user mailing list