Skip to content

Commit 7043e5b

Browse files
authored
Merge pull request #357 from RobbieClarken/readme-formatting
Fix formatting of code in readme and correct typos
2 parents 72c33d1 + e4f7652 commit 7043e5b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Overview
1414
LMfit-py provides a Least-Squares Minimization routine and class with a
1515
simple, flexible approach to parameterizing a model for fitting to data.
1616

17-
LMFIT is a pure python package, and so easy to install from source or witn
18-
`pip install lmfit`.
17+
LMfit is a pure python package, and so easy to install from source or with
18+
``pip install lmfit``.
1919

20-
For questions, comments, and suggestions, please use the LMFIt mailing
20+
For questions, comments, and suggestions, please use the LMfit mailing
2121
list, https://groups.google.com/group/lmfit-py. Using the bug tracking
22-
software in Github Issues is encouraged for known problems and bug reports.
23-
Please read Contributing.md before creating an Issue.
22+
software in GitHub Issues is encouraged for known problems and bug reports.
23+
Please read `Contributing.md <.github/CONTRIBUTING.md>`_ before creating an Issue.
2424

2525

2626
Parameters and Fitting
@@ -38,14 +38,14 @@ dictionary, containing named parameters::
3838

3939
fit_params = Parameters()
4040
fit_params['amp'] = Parameter(value=1.2, min=0.1, max=1000)
41-
fit_params['cen'] = Parameter(value=40.0, vary=False),
42-
fit_params['wid'] = Parameter(value=4, min=0)}
41+
fit_params['cen'] = Parameter(value=40.0, vary=False)
42+
fit_params['wid'] = Parameter(value=4, min=0)
4343

44-
or using the equivalent:
44+
or using the equivalent::
4545

4646
fit_params = Parameters()
4747
fit_params.add('amp', value=1.2, min=0.1, max=1000)
48-
fit_params.add('cen', value=40.0, vary=False),
48+
fit_params.add('cen', value=40.0, vary=False)
4949
fit_params.add('wid', value=4, min=0)
5050

5151
The programmer will also write a function to be minimized (in the
@@ -68,7 +68,7 @@ changed if different bounds or constraints are placed on the fitting
6868
Parameters. The fitting model (as described in myfunc) is instead written
6969
in terms of physical parameters of the system, and remains remains
7070
independent of what is actually varied in the fit. In addition, which
71-
parameters are adjuested and which are fixed happens at run-time, so that
71+
parameters are adjusted and which are fixed happens at run-time, so that
7272
changing what is varied and what constraints are placed on the parameters
7373
can easily be modified by the consumer in real-time data analysis.
7474

@@ -83,5 +83,5 @@ statistics and information.
8383

8484
By default, the underlying fit algorithm is the Levenberg-Marquart
8585
algorithm with numerically-calculated derivatives from MINPACK's lmdif
86-
function, as used by scipy.optimize.leastsq. Other solvers (Nelder-Mead,
86+
function, as used by ``scipy.optimize.leastsq``. Other solvers (Nelder-Mead,
8787
etc) are also available, though slightly less well-tested and supported.

0 commit comments

Comments
 (0)