[SciPy-User] forcing curve fit

Gabriele Brambilla gb.gabrielebrambilla at gmail.com
Mon May 12 10:09:00 EDT 2014


But so what I have to do to install it?

thanks

Gabriele


2014-05-12 9:18 GMT-04:00 <josef.pktd at gmail.com>:

>
>
>
> On Mon, May 12, 2014 at 8:56 AM, Gabriele Brambilla <
> gb.gabrielebrambilla at gmail.com> wrote:
>
>> Hi,
>> I tried to install it but I receive this error:
>>
>> C:\Users\Gabriele\Documents\università\TESI\code>easy_install -U lmfit
>> Searching for lmfit
>> Reading http://pypi.python.org/simple/lmfit/
>> Best match: lmfit 0.7.4
>> Downloading
>> https://pypi.python.org/packages/source/l/lmfit/lmfit-0.7.4.tar.gz#m
>> d5=121cc508575b6c9e84f50d89fe6c40d0
>> Processing lmfit-0.7.4.tar.gz
>> Writing
>> c:\users\gabriele\appdata\local\temp\easy_install-vzljat\lmfit-0.7.4\set
>> up.cfg
>> Running lmfit-0.7.4\setup.py -q bdist_egg --dist-dir
>> c:\users\gabriele\appdata\l
>> ocal\temp\easy_install-vzljat\lmfit-0.7.4\egg-dist-tmp-5uakdk
>> error: SandboxViolation:
>> os.open('C:\\Users\\Gabriele\\.matplotlib\\tmp3euipt',
>> 34242, 384) {}
>>
>> The package setup script has attempted to modify files on your system
>> that are not within the EasyInstall build area, and has been aborted.
>>
>> This package cannot be safely installed by EasyInstall, and may not
>> support alternate installation locations even if you run its setup
>> script by hand.  Please inform the package's author and the EasyInstall
>> maintainers to find out if a fix or workaround is available.
>>
>> I am using Anaconda on Windows 7, 64bit.
>>
>
> statsmodels has this in the beginning in the setup.py
>
> # temporarily redirect config directory to prevent matplotlib importing
> # testing that for writeable directory which results in sandbox error in
> # certain easy_install versions
> os.environ["MPLCONFIGDIR"] = "."
>
>
> I don't remember what was triggering an import of matplotlib.
>
> https://github.com/lmfit/lmfit-py/issues
>
>
> Josef
>
>
>>
>> thanks
>>
>> Gabriele
>>
>>
>> 2014-05-09 15:21 GMT-04:00 Matt Newville <newville at cars.uchicago.edu>:
>>
>> Gabriele,
>>>
>>>
>>> On Fri, May 9, 2014 at 9:33 AM, Gabriele Brambilla <
>>> gb.gabrielebrambilla at gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> is it possible to force curve_fit to search the values for the best fit
>>>> parameters in a certain interval of values?
>>>>
>>>> Because I have a fit routine that returns to me a lot of good curves
>>>> but sometimes returns to me a curve with an amplitude that is 100, 1000
>>>> times smaller!
>>>>
>>>> thanks
>>>>
>>>> Gabriele
>>>>
>>>> _______________________________________________
>>>> SciPy-User mailing list
>>>> SciPy-User at scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>>>
>>>>
>>>
>>> You might find the lmfit library (http://lmfit.github.io/lmfit-py)
>>> useful.   This allows one to write least squares problems in terms of
>>> Parameter objects which can have bounds set on their values, be fixed, or
>>> have values written as mathematical expressions of other Parameter values.
>>> The lmfit library also allows you to switch between minimization algorithms
>>> easily, and also explore confidence intervals in detail.
>>>
>>> --Matt
>>>
>>>
>>>
>>>
>>> --
>>> --Matt Newville <newville at cars.uchicago.edu> 630-252-0431
>>>
>>> _______________________________________________
>>> SciPy-User mailing list
>>> SciPy-User at scipy.org
>>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>>
>>>
>>
>> _______________________________________________
>> SciPy-User mailing list
>> SciPy-User at scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>
>>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20140512/33714285/attachment.html>


More information about the SciPy-User mailing list