Path to this page:
Subject: CVS commit: pkgsrc/math/py-lmfit
From: Adam Ciarcinski
Date: 2024-08-02 09:39:27
Message id: 20240802073927.B3E13FC74@cvs.NetBSD.org
Log Message:
py-lmfit: updated to 1.3.2
Version 1.3.2 Release Notes (July 19, 2024)
====================================================
Fixes:
- fix typo in restoring a ``_buildmodel`` dict
- fixes for Numpy2 support
- ensure that correct initial params are used when re-fitting a ModeRresult
- make sure that CompositeModels cannot have a prefix
Build, Maintenance:
- update pre-commit hooks, adding codespell exceptions
- update to latest SciPy/NumPy versions, including dependency versions for NumPy 2.
- now require asteval>=1.0 and uncertainties>=3.2.2
Version 1.3.1 Release Notes (April 19, 2024)
====================================================
Mostly fixes for bugs introduced in 1.3.0
- allow ``Model.eval_uncertainty`` to be performed with single points for ``x``
independent variables
- allow ``Model._parse_param`` to handle older-style passed-in 'argnames' and
'kwargs' as for variadic function, add test
- better allow (or re-allow) Model function independent variables / keyword
argumentss to be given non-default values at model creation time
- add ``form`` as independent variable for builtin Step, Rectangle, Thermal
Distribution models.
- use a copy of ``sys.modules`` when iterating over it.
- use ``Model._reprstring(long=True)`` for model ``Model.__repr__()``.
Version 1.3.0 Release Notes (April 4, 2024)
===========================================
New features:
- add ``'min_rel_change'`` as optional variable in calculation of confidence \
intervals with
``Model.conf_interval()``.
- ``Model.eval_uncertainty`` now takes an optional ``dscale`` parameter (default \
value of 0.01) to
set the step size for calculating derivatives
- add calculation of ``predicted_interval`` to ``Model.eval_uncertainty``
Bug fixes/enhancements:
- restore best-fit parameter values for high accuracy values of constrained values
- improvement to Model for the difference between Parameter, "independent \
variable", and
"option". With this change, keyword arguments to model functions \
with non-numerice
default values such as ``do_thing=True``, or ``form='linear'`` has those arguments
become clearly identified as independent variables,and use the provided values as
default values.
- better saving/loading saved states of Model now use dill, have several \
cleanups, and
are now versioned for future-proofing. Also, propagate funcdets for Parameters when
loading a Model.
- in the TNC method, ``maxfun`` is used instead of ``maxiter``.
- fix bug calculating r-squared for fits with weights
- fix bug in ``modelresult.eval_uncertainty()`` after ``load_modelresult()``
- use StringIO for ``pandas.read_json``.
- add test for MinimizerResult.uvars after successful fit
- adding an example using basinhopping, can take other methods as command-line \
argument
Maintenance/Deprecations:
- drop support for Python 3.7 that reached EOL on 2023-06-27
- fix tests for Python 3.12 and Python 3.13-dev
- increase minimum numpy verstio to 1.23 and scipy to 1.8.
- updates for compatibility with numpy 2.0
- the ``dill`` package is now required.
- build switchded to use pyproject.toml
- fix broken links in Examples gallery
- fix intersphinx mapping to scipy docs.
Files: