Publication | Open Access
lmfit/lmfit-py: 1.0.3
55
Citations
0
References
2021
Year
Version 1.0.3 Release Notes (October 14, 2021) Potentially breaking change: argument <code>x</code> is now required for the <code>guess</code> method of Models (Issue #747; PR #748) To get reasonable estimates for starting values one should always supply both <code>x</code> and <code>y</code> values; in some cases it would work when only providing <code>data</code> (i.e., y-values). With the change above, <code>x</code> is now required in the <code>guess</code> method call, so scripts might need to be updated to explicitly supply <code>x</code>. Bug fixes/enhancements: do not overwrite user-specified figure titles in Model.plot() functions and allow setting with <code>title</code> keyword argument (PR #711) preserve Parameters subclass in deepcopy (@jenshnielsen; PR #719) coerce <code>data</code> and <code>indepdent_vars</code> to NumPy array with <code>dtype=float64</code> or <code>dtype=complex128</code> where applicable (Issues #723 and #728) fix collision between parameter names in built-in models and user-specified parameters (Issue #710 and PR #732) correct error message in PolynomialModel (@kremeyer; PR #737) improved handling of altered JSON data (Issue #739; PR #740, reported by Matthew Giammar) map <code>max_nfev</code> to <code>maxiter</code> when using <code>differential_evolution</code> (PR #749, reported by Olivier B.) correct use of noise versus experimental uncertainty in the documentation (PR #751, reported by Andrés Zelcer) specify return type of <code>eval</code> method more precisely and allow for plotting of (Complex)ConstantModel by coercing their <code>float</code>, <code>int</code>, or <code>complex</code> return value to a <code>numpy.ndarray</code> (Issue #684 and PR #754) fix <code>dho</code> (Damped Harmonic Oscillator) lineshape (PR #755; @rayosborn) reset <code>Minimizer._abort</code> to <code>False</code> before starting a new fit (Issue #756 and PR #757; @azelcer) fix typo in <code>guess_from_peak2d</code> (@ivan-usovl; PR #758) Various: update asteval dependency to >= 0.9.22 to avoid DeprecationWarnings from NumPy v1.20.0 (PR #707) remove incorrectly spelled <code>DonaichModel</code> and <code>donaich</code> lineshape, deprecated in version 1.0.1 (PR #707) remove occurrences of OrderedDict throughout the code; dict is order-preserving since Python 3.6 (PR #713) update the contributing instructions (PR #718; @martin-majlis) (again) defer import of matplotlib to when it is needed (@zobristnicholas; PR #721) fix description of <code>name</code> argument in <code>Parameters.add</code> (@kristianmeyerr; PR #725) update dependencies, make sure a functional development environment is installed on Windows (Issue #712) use <code>setuptools_scm</code> for version info instead of <code>versioneer</code> (PR #729) transition to using <code>f-strings</code> (PR #730) mark <code>test_manypeaks_speed.py</code> as flaky to avoid intermittent test failures (repeat up to 5 times; PR #745) update scipy dependency to >= 1.14.0 (PR #751) improvement to output of examples in sphinx-gallery and use higher resolution figures (PR #753) remove deprecated functions <code>lmfit.printfuncs.report_errors</code> and <code>asteval</code> argument in <code>Parameters</code> class (PR #759)