[SciPy-user] scipy.optimize.leastsq error estimates

Nils Wagner nwagner@iam.uni-stuttgart...
Wed Feb 14 04:24:56 CST 2007


Chiara Caronna wrote:
> Hi,
> I am also interested in having errors from the fit, and I tried to import 
> the module scipy.odr as you said, but I got this errors:
>
> File "/usr/local/lib/python2.4/site-packages/scipy/odr/__init__.py", line 
> 49, in ?
>     import odrpack
>   File "/usr/local/lib/python2.4/site-packages/scipy/odr/odrpack.py", line 
> 103, in ?
>     from scipy.sandbox.odr import __odrpack
> ImportError: No module named odr
>
>
> And the same is if I try to import  sandbox.odr
>
> import scipy.sandbox.odr
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: No module named odr
>
> Where am I wrong?
> Thank you,
> Chiara
>
>
>
>
>
>   
>> From: Robert Kern <robert.kern@gmail.com>
>> Reply-To: SciPy Users List <scipy-user@scipy.org>
>> To: SciPy Users List <scipy-user@scipy.org>
>> Subject: Re: [SciPy-user] scipy.optimize.leastsq error estimates
>> Date: Tue, 06 Feb 2007 03:47:17 -0600
>>
>> Nils Wagner wrote:
>>
>>     
>>> AFAIK odr is directly available through scipy.odr.
>>> So I guess the odr directory in the sandbox is obsolete. Is that correct 
>>>       
>> ?
>>
>> There is no more odr/ directory in the sandbox since it got moved into the 
>> main
>> package.
>>
>> --
>> Robert Kern
>>
>> "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@scipy.org
>> http://projects.scipy.org/mailman/listinfo/scipy-user
>>     
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE! 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>   
odr is in the main tree.

Python 2.4 (#1, Oct 13 2006, 16:43:49)
[GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
>>> scipy.__version__
'0.5.3.dev2704'
>>> import scipy.odr

works fine for me.

Nils


 



More information about the SciPy-user mailing list