Table Of Contents

Previous topic

Non-Linear Least-Square Minimization for Python

Next topic

Getting started with Non-Linear Least-Squares Fitting

This Page

Downloading and Installation

Prerequisites

The lmfit package requires Python, Numpy, and Scipy. Extensive testing on version compatibility has not yet been done. Initial tests work with Python 3.2, but little testing with Python 3 has yet been done. No testing has been done with 64-bit architectures, but as this package is pure Python, no significant troubles are expected.

Downloads

The latest stable version is available from PyPI or CARS (Univ of Chicago):

Download Option Python Versions Location
Source Kit 2.6, 2.7, 3.2
Win32 Installer 2.6
Win32 Installer 2.7
Win32 Installer 3.2
Development Version all use lmfit github repository

if you have Python Setup Tools installed, you can download and install the lmfit-py Package simply with:

easy_install -U lmfit

Development Version

To get the latest development version, use:

git clone http://github.com/newville/lmfit-py.git

Installation

Installation from source on any platform is:

python setup.py install

Acknowledgements

LMFIT was originally written by Matthew Newville. Substantial code and documentation improvements, especially for improved estimates of confidence intervals was provided by Till Stensitzki. The implemenation of parameter bounds as described in the MINUIT documentation is taken from Jonathan J. Helmus' leastsqbound code, with permission. Many valuable suggestions for improvements have come from Christoph Deil. The code obviously depends on, and owes a very large debt to the code in scipy.optimize. Several discussions on the scipy mailing lists have also led to improvements in this code.

License

The LMFIT-py code is distribution under the following license:

Copyright (c) 2012 Matthew Newville, The University of Chicago
Till Stensitzki, Freie Universitat Berlin

Permission to use and redistribute the source code or binary forms of this software and its documentation, with or without modification is hereby granted provided that the above notice of copyright, these terms of use, and the disclaimer of warranty below appear in the source code and documentation, and that none of the names of above institutions or authors appear in advertising or endorsement of works derived from this software without specific prior written permission from all parties.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THIS SOFTWARE.