diff options
author | Drew Parsons <dparsons@debian.org> | 2023-06-18 01:28:26 +0200 |
---|---|---|
committer | Drew Parsons <dparsons@debian.org> | 2023-06-18 01:28:26 +0200 |
commit | 674766cdfbaa2af7d70e058f76d0d0642ac9d9f2 (patch) | |
tree | 6ea9557c2e132813c78e589c265c81a06164c246 /doc/builtin_models.rst | |
parent | 982032378ea7e5228977ccd9977e6ae848e132e4 (diff) |
New upstream version 1.2.1
Diffstat (limited to 'doc/builtin_models.rst')
-rw-r--r-- | doc/builtin_models.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/builtin_models.rst b/doc/builtin_models.rst index 0aaa172..ea0d6f9 100644 --- a/doc/builtin_models.rst +++ b/doc/builtin_models.rst @@ -406,6 +406,7 @@ better? To do this, we simply replace ``GaussianModel`` with .. jupyter-execute:: from lmfit.models import LorentzianModel + mod = LorentzianModel() with the rest of the script as above. Perhaps predictably, the first thing @@ -434,6 +435,7 @@ A Voigt model does a better job. Using :class:`VoigtModel`, this is as simple as .. jupyter-execute:: from lmfit.models import VoigtModel + mod = VoigtModel() with all the rest of the script as above. This gives: @@ -617,6 +619,7 @@ That is, with:: return 0 return max(np.where(arrval <= value)[0]) + ix1 = index_of(x, 75) ix2 = index_of(x, 135) ix3 = index_of(x, 175) |