head	1.27;
access;
symbols
	pkgsrc-2026Q2:1.27.0.6
	pkgsrc-2026Q2-base:1.27
	pkgsrc-2026Q1:1.27.0.4
	pkgsrc-2026Q1-base:1.27
	pkgsrc-2025Q4:1.27.0.2
	pkgsrc-2025Q4-base:1.27
	pkgsrc-2025Q3:1.26.0.2
	pkgsrc-2025Q3-base:1.26
	pkgsrc-2025Q2:1.24.0.2
	pkgsrc-2025Q2-base:1.24
	pkgsrc-2025Q1:1.23.0.2
	pkgsrc-2025Q1-base:1.23
	pkgsrc-2024Q4:1.22.0.2
	pkgsrc-2024Q4-base:1.22
	pkgsrc-2024Q3:1.20.0.2
	pkgsrc-2024Q3-base:1.20
	pkgsrc-2024Q2:1.19.0.8
	pkgsrc-2024Q2-base:1.19
	pkgsrc-2024Q1:1.19.0.6
	pkgsrc-2024Q1-base:1.19
	pkgsrc-2023Q4:1.19.0.4
	pkgsrc-2023Q4-base:1.19
	pkgsrc-2023Q3:1.19.0.2
	pkgsrc-2023Q3-base:1.19
	pkgsrc-2023Q2:1.17.0.2
	pkgsrc-2023Q2-base:1.17
	pkgsrc-2023Q1:1.16.0.8
	pkgsrc-2023Q1-base:1.16
	pkgsrc-2022Q4:1.16.0.6
	pkgsrc-2022Q4-base:1.16
	pkgsrc-2022Q3:1.16.0.4
	pkgsrc-2022Q3-base:1.16
	pkgsrc-2022Q2:1.16.0.2
	pkgsrc-2022Q2-base:1.16
	pkgsrc-2022Q1:1.15.0.2
	pkgsrc-2022Q1-base:1.15
	pkgsrc-2021Q4:1.13.0.2
	pkgsrc-2021Q4-base:1.13
	pkgsrc-2021Q3:1.11.0.4
	pkgsrc-2021Q3-base:1.11
	pkgsrc-2021Q2:1.11.0.2
	pkgsrc-2021Q2-base:1.11
	pkgsrc-2021Q1:1.10.0.8
	pkgsrc-2021Q1-base:1.10
	pkgsrc-2020Q4:1.10.0.6
	pkgsrc-2020Q4-base:1.10
	pkgsrc-2020Q3:1.10.0.4
	pkgsrc-2020Q3-base:1.10
	pkgsrc-2020Q2:1.10.0.2
	pkgsrc-2020Q2-base:1.10
	pkgsrc-2020Q1:1.8.0.2
	pkgsrc-2020Q1-base:1.8
	pkgsrc-2019Q4:1.7.0.8
	pkgsrc-2019Q4-base:1.7
	pkgsrc-2019Q3:1.7.0.4
	pkgsrc-2019Q3-base:1.7
	pkgsrc-2019Q2:1.7.0.2
	pkgsrc-2019Q2-base:1.7
	pkgsrc-2019Q1:1.6.0.4
	pkgsrc-2019Q1-base:1.6
	pkgsrc-2018Q4:1.6.0.2
	pkgsrc-2018Q4-base:1.6
	pkgsrc-2018Q3:1.5.0.2
	pkgsrc-2018Q3-base:1.5
	pkgsrc-2018Q2:1.4.0.2
	pkgsrc-2018Q2-base:1.4
	pkgsrc-2018Q1:1.3.0.2
	pkgsrc-2018Q1-base:1.3
	pkgsrc-2017Q4:1.2.0.6
	pkgsrc-2017Q4-base:1.2
	pkgsrc-2017Q3:1.2.0.4
	pkgsrc-2017Q3-base:1.2
	pkgsrc-2017Q2:1.1.0.8
	pkgsrc-2017Q2-base:1.1
	pkgsrc-2017Q1:1.1.0.6
	pkgsrc-2017Q1-base:1.1
	pkgsrc-2016Q4:1.1.0.4
	pkgsrc-2016Q4-base:1.1
	pkgsrc-2016Q3:1.1.0.2
	pkgsrc-2016Q3-base:1.1;
locks; strict;
comment	@# @;


1.27
date	2025.10.09.07.57.47;	author wiz;	state Exp;
branches;
next	1.26;
commitid	t4nMY0Dt3rBjSRdG;

1.26
date	2025.08.26.13.23.07;	author adam;	state Exp;
branches;
next	1.25;
commitid	d2nkZ5T6szXK5f8G;

1.25
date	2025.07.03.19.18.08;	author wiz;	state Exp;
branches;
next	1.24;
commitid	VtH4NTLuuL94Nk1G;

1.24
date	2025.04.15.16.31.38;	author adam;	state Exp;
branches;
next	1.23;
commitid	GEWTNMP1WtMxpaRF;

1.23
date	2025.03.13.09.01.25;	author adam;	state Exp;
branches;
next	1.22;
commitid	m853DNNhfLECYSMF;

1.22
date	2024.11.11.07.28.41;	author wiz;	state Exp;
branches;
next	1.21;
commitid	1fBDq3LwS98NncxF;

1.21
date	2024.10.14.06.45.49;	author wiz;	state Exp;
branches;
next	1.20;
commitid	ynDJEEQamKd33BtF;

1.20
date	2024.08.02.07.39.27;	author adam;	state Exp;
branches;
next	1.19;
commitid	oESQsgHLCG7WGdkF;

1.19
date	2023.08.01.23.20.47;	author wiz;	state Exp;
branches;
next	1.18;
commitid	lyjXpsSeA6xpH8zE;

1.18
date	2023.07.01.08.37.39;	author wiz;	state Exp;
branches;
next	1.17;
commitid	OGZpaIgVtdY8O4vE;

1.17
date	2023.06.06.12.41.53;	author riastradh;	state Exp;
branches;
next	1.16;
commitid	xhspr6Z8JLQOWSrE;

1.16
date	2022.04.10.00.57.14;	author gutteridge;	state Exp;
branches;
next	1.15;
commitid	53ZWhv2DKvpNCAzD;

1.15
date	2022.01.04.20.54.14;	author wiz;	state Exp;
branches;
next	1.14;
commitid	CYyhdK9qtoffkmnD;

1.14
date	2021.12.30.13.05.36;	author adam;	state Exp;
branches;
next	1.13;
commitid	w23rFuQ4pTWhUFmD;

1.13
date	2021.12.17.07.49.34;	author wiz;	state Exp;
branches;
next	1.12;
commitid	LEpMaHNAnIEMzYkD;

1.12
date	2021.11.07.11.58.47;	author adam;	state Exp;
branches;
next	1.11;
commitid	h2bOE21r6uCZeRfD;

1.11
date	2021.04.09.14.41.35;	author tnn;	state Exp;
branches;
next	1.10;
commitid	UfqIfcWkKjrgXCOC;

1.10
date	2020.05.13.15.36.27;	author adam;	state Exp;
branches;
next	1.9;
commitid	m4auwfkNMefAT58C;

1.9
date	2020.04.28.13.27.03;	author adam;	state Exp;
branches;
next	1.8;
commitid	z5uZJ4MwjQocF96C;

1.8
date	2020.01.18.23.32.52;	author rillig;	state Exp;
branches;
next	1.7;
commitid	shGUwZfkr7sleeTB;

1.7
date	2019.06.15.07.21.21;	author adam;	state Exp;
branches;
next	1.6;
commitid	5xeKs3nfR8FnRfrB;

1.6
date	2018.12.03.20.41.44;	author adam;	state Exp;
branches;
next	1.5;
commitid	uyErpg6oHK3xwo2B;

1.5
date	2018.07.13.06.22.35;	author adam;	state Exp;
branches;
next	1.4;
commitid	cQSpOAQPvZeUmWJA;

1.4
date	2018.04.14.05.32.22;	author adam;	state Exp;
branches;
next	1.3;
commitid	wws9yYuzApn2ZmyA;

1.3
date	2018.02.27.06.40.07;	author adam;	state Exp;
branches;
next	1.2;
commitid	klw63fy5y8fZPssA;

1.2
date	2017.08.31.08.27.42;	author prlw1;	state Exp;
branches;
next	1.1;
commitid	mXhrdFYXzWpedl5A;

1.1
date	2016.09.16.15.20.31;	author prlw1;	state Exp;
branches;
next	;
commitid	rJaHzNzXdOdDIwmz;


desc
@@


1.27
log
@*: remove reference to (removed) Python 3.9
@
text
@# $NetBSD: Makefile,v 1.26 2025/08/26 13:23:07 adam Exp $

DISTNAME=	lmfit-1.3.4
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	math python
MASTER_SITES=	${MASTER_SITE_PYPI:=l/lmfit/}

MAINTAINER=	prlw1@@cam.ac.uk
HOMEPAGE=	https://lmfit.github.io/lmfit-py/
COMMENT=	Least-squares minimization with bounds and constraints
LICENSE=	modified-bsd

TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm>=6.2:../../devel/py-setuptools_scm
DEPENDS+=	${PYPKGPREFIX}-asteval>=1.0:../../math/py-asteval
DEPENDS+=	${PYPKGPREFIX}-dill>=0.3.4:../../textproc/py-dill
DEPENDS+=	${PYPKGPREFIX}-numpy>=1.24:../../math/py-numpy
DEPENDS+=	${PYPKGPREFIX}-scipy>=1.10.0:../../math/py-scipy
DEPENDS+=	${PYPKGPREFIX}-uncertainties>=3.2.2:../../math/py-uncertainties

USE_LANGUAGES=	# none

PYTHON_VERSIONS_INCOMPATIBLE=	310

.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
@


1.26
log
@py-lmfit: updated to 1.3.4

1.3.4

Mostly maintenance and small bug fixes:

capture and ignore std_dev=0 warnings from uncertainties package
better ensure that parameter values and sterr are floats, not np.floats
fix Doniach formula in docstring
add bose and fermi lineshapes, and BoseModel and FermiModel (with tests)
remove deprecated disp argument for ampgo
fix typos in README.rst
fix typos in doc
update to latest SciPy/NumPy version
update pre-commit and CI hooks
update zenodo link
several fixes for deprecations and test failures
do not test for warnings from upstream code that might change or be suppressed or altered
update license name for PyPI compatibiilty
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2025/07/03 19:18:08 wiz Exp $
d23 1
a23 1
PYTHON_VERSIONS_INCOMPATIBLE=	39 310
@


1.25
log
@*: py-numpy needs Python >= 3.11 now
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2025/04/15 16:31:38 adam Exp $
d3 1
a3 1
DISTNAME=	lmfit-1.3.3
a4 1
PKGREVISION=	1
@


1.24
log
@Fix PLIST after py-setuptools update; bump depends and revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2025/03/13 09:01:25 adam Exp $
d24 1
a24 1
PYTHON_VERSIONS_INCOMPATIBLE=	39
@


1.23
log
@py-lmfit: updated to 1.3.3

Version 1.3.3

Fixes:

- fix loading spline models with more than five knots
- improved SplineModel to explicitly allow more knots, make it easier to evaluate and save/reload
- improvements to adding Parameters.
- support Model functions with "barestar" syntax
- fix several related problems with providing a Jacobian function, especially for consistency across solvers (including least_squares), and for pickling
- fix Step and Rectangle Models to allow a negative value for sigma, indicating a downward step

Build, Maintenance:

- update issue templates
- add test for consistent init_fit and best_fit for saved/looded SplineModel
- fix NumPy v2 DeprecationWarning
- uppdate SciPy/NumPy dependencies.
- remove numexpr dependency (again)
- drop support for Python 3.8, add Python 3.13
- asteval no longer raises NameError to Python, so we catch exceptions from asteval when creating parameters.
- avoid setting ``stderr`` to ``None`` for uncertainties calculations.

Documentation and Examples:

- add example with uncertainties in both x and y
- make sign of residual calculations in model.py consistent with documentation
- add example fitting multiple datasets using Model interface
- tweaks to 'sphinx-gallery' settings.
- update names of the documentation examples in Gallery
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2024/11/11 07:28:41 wiz Exp $
d5 1
d14 1
a14 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=45:../../devel/py-setuptools
@


1.22
log
@py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2024/10/14 06:45:49 wiz Exp $
d3 1
a3 1
DISTNAME=	lmfit-1.3.2
d17 2
a18 2
DEPENDS+=	${PYPKGPREFIX}-numpy>=1.19:../../math/py-numpy
DEPENDS+=	${PYPKGPREFIX}-scipy>=1.6:../../math/py-scipy
@


1.21
log
@*: clean-up after python38 removal
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2024/08/02 07:39:27 adam Exp $
a14 1
TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
@


1.20
log
@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.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2023/08/01 23:20:47 wiz Exp $
d24 1
a24 1
PYTHON_VERSIONS_INCOMPATIBLE=	27 38 39
@


1.19
log
@*: remove more references to Python 3.7
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2023/07/01 08:37:39 wiz Exp $
d3 1
a3 1
DISTNAME=	lmfit-1.0.3
a4 1
PKGREVISION=	1
d13 8
a20 6
DEPENDS+=	${PYPKGPREFIX}-asteval>=0.9.22:../../math/py-asteval
DEPENDS+=	${PYPKGPREFIX}-numpy>=1.18:../../math/py-numpy
DEPENDS+=	${PYPKGPREFIX}-scipy>=1.4:../../math/py-scipy
DEPENDS+=	${PYPKGPREFIX}-uncertainties>=3.0.1:../../math/py-uncertainties
TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
d24 1
a24 1
PYTHON_VERSIONS_INCOMPATIBLE=	27 38
d26 1
a26 1
.include "../../lang/python/egg.mk"
@


1.18
log
@*: restrict py-numpy users to 3.9+ in preparation for update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2023/06/06 12:41:53 riastradh Exp $
d23 1
a23 1
PYTHON_VERSIONS_INCOMPATIBLE=	27 37 38
@


1.17
log
@Mass-change BUILD_DEPENDS to TOOL_DEPENDS outside mk/.

Almost all uses, if not all of them, are wrong, according to the
semantics of BUILD_DEPENDS (packages built for target available for
use _by_ tools at build-time) and TOOL_DEPEPNDS (packages built for
host available for use _as_ tools at build-time).

No change to BUILD_DEPENDS as used correctly inside buildlink3.

As proposed on tech-pkg:
https://mail-index.netbsd.org/tech-pkg/2023/06/03/msg027632.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2022/04/10 00:57:14 gutteridge Exp $
d23 1
a23 1
PYTHON_VERSIONS_INCOMPATIBLE=	27 37 # py-scipy
@


1.16
log
@Fix build breakage from py-scipy now being Python >= 3.8
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2022/01/04 20:54:14 wiz Exp $
d18 1
a18 1
BUILD_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
@


1.15
log
@*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2021/12/30 13:05:36 adam Exp $
d23 1
a23 1
PYTHON_VERSIONS_INCOMPATIBLE=	27 # py-scipy
@


1.14
log
@Forget about Python 3.6
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2021/12/17 07:49:34 wiz Exp $
d5 1
@


1.13
log
@py-lmfit: add build dependency on py-setuptools_scm
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2021/11/07 11:58:47 adam Exp $
d22 1
a22 1
PYTHON_VERSIONS_INCOMPATIBLE=	27 36	# py-scipy
@


1.12
log
@py-lmfit: updated to 1.0.3

Version 1.0.3 Release Notes (October 14, 2021)
==============================================

Potentially breaking change:

- argument ``x`` is now required for the ``guess`` method of Models

To get reasonable estimates for starting values one should always supply both ``x`` and ``y`` values; in some cases it would work
when only providing ``data`` (i.e., y-values). With the change above, ``x`` is now required in the ``guess`` method call, so scripts might
need to be updated to explicitly supply ``x``.

Bug fixes/enhancements:

- do not overwrite user-specified figure titles in Model.plot() functions and allow setting with ``title`` keyword argument
- preserve Parameters subclass in deepcopy
- coerce ``data`` and ``indepdent_vars`` to NumPy array with ``dtype=float64`` or ``dtype=complex128`` where applicable
- fix collision between parameter names in built-in models and user-specified parameters
- correct error message in PolynomialModel
- improved handling of altered JSON data
- map ``max_nfev`` to ``maxiter`` when using ``differential_evolution``
- correct use of noise versus experimental uncertainty in the documentation
- specify return type of ``eval`` method more precisely and allow for plotting of (Complex)ConstantModel by coercing their
  ``float``, ``int``, or ``complex`` return value to a ``numpy.ndarray``
- fix ``dho`` (Damped Harmonic Oscillator) lineshape
- reset ``Minimizer._abort`` to ``False`` before starting a new fit
- fix typo in ``guess_from_peak2d``

Various:

- update asteval dependency to >= 0.9.22 to avoid DeprecationWarnings from NumPy v1.20.0
- remove incorrectly spelled ``DonaichModel`` and ``donaich`` lineshape, deprecated in version 1.0.1
- remove occurrences of OrderedDict throughout the code; dict is order-preserving since Python 3.6
- update the contributing instructions
- (again) defer import of matplotlib to when it is needed
- fix description of ``name`` argument in ``Parameters.add``
- update dependencies, make sure a functional development environment is installed on Windows
- use ``setuptools_scm`` for version info instead of ``versioneer``
- transition to using ``f-strings``
- mark ``test_manypeaks_speed.py`` as flaky to avoid intermittent test failures
- update scipy dependency to >= 1.14.0
- improvement to output of examples in sphinx-gallery and use higher resolution figures
- remove deprecated functions ``lmfit.printfuncs.report_errors`` and ``asteval`` argument in ``Parameters`` class


.. _whatsnew_102_label:

Version 1.0.2 Release Notes (February 7, 2021)
==============================================

Version 1.0.2 officially supports Python 3.9 and has dropped support for Python 3.5. The minimum version
of the following dependencies were updated: asteval>=0.9.21, numpy>=1.18, and scipy>=1.3.

New features:

- added two-dimensional Gaussian lineshape and model
- all built-in models are now registered in ``lmfit.models.lmfit_models``; new Model class attribute ``valid_forms``
- added a SineModel
- add the ``run_mcmc_kwargs argument`` to ``Minimizer.emcee`` to pass to the ``emcee.EnsembleSampler.run_mcmc`` function

Bug fixes:

- ``ModelResult.eval_uncertainty`` should use provided Parameters
- center in lognormal model can be negative
- restore best-fit values after calculation of covariance matrix
- add helper-function ``not_zero`` to prevent ZeroDivisionError in lineshapes and use in exponential lineshape
- save ``last_internal_values`` and use to restore internal values if fit is aborted
- dumping a fit using the ``lbfgsb`` method now works, convert bytes to string if needed
- fix use of callable Jacobian for scalar methods
- preserve float/int types when encoding for JSON
- better support for saving/loading of ExpressionModels and assure that ``init_params`` and ``init_fit`` are set when loading a ``ModelResult``

Various:

- update minimum dependencies
- improvements in coding style, docstrings, CI, and test coverage
- fix typo in Oscillator
- add example using SymPy
- allow better custom pool for emcee()
- update NIST Strd reference functions and tests
- make building of documentation cross-platform
- relax module name check in ``test_check_ast_errors`` for Python 3.9
- fix/update layout of documentation, now uses the sphinx13 theme
- fixed DeprecationWarnings reported by NumPy v1.2.0
- increase value of ``tiny`` and check for it in bounded parameters to avoid "parameter not moving from initial value"
- add ``max_nfev`` to ``basinhopping`` and ``brute`` (now supported everywhere in lmfit) and set to more uniform default values
- use Azure Pipelines for CI, drop Travis
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2021/04/09 14:41:35 tnn Exp $
d17 1
@


1.11
log
@revert wrong fix for py-scipy python 3.6 deprecation, fix properly
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2020/05/13 15:36:27 adam Exp $
d3 1
a3 1
DISTNAME=	lmfit-1.0.1
d13 3
a15 3
DEPENDS+=	${PYPKGPREFIX}-asteval>=0.9.16:../../math/py-asteval
DEPENDS+=	${PYPKGPREFIX}-numpy>=1.16:../../math/py-numpy
DEPENDS+=	${PYPKGPREFIX}-scipy>=1.2:../../math/py-scipy
d17 1
d21 1
a21 1
PYTHON_VERSIONS_INCOMPATIBLE=	36 27	# py-scipy
@


1.10
log
@py-lmfit: updated to 1.0.1

Version 1.0.1 Release Notes
============================

**Version 1.0.1 is the last release that supports Python 3.5**. All newer version will
require 3.6+ so that we can use formatting-strings and rely on dictionaries being ordered.

New features:
- added thermal distribution model and lineshape
- introduced a new argument ``max_nfev`` to uniformly specify the maximum number of function evalutions
  **Please note: all other arguments (e.g., ``maxfev``, ``maxiter``, ...) will no longer be passed to the underlying
  solver. A warning will be emitted stating that one should use ``max_nfev``.**
- the attribute ``call_kws`` was added to the ``MinimizerResult`` class and contains the keyword arguments that are
  supplied to the solver in SciPy.

Bug fixes:
- fixes to the ``load`` and ``__setstate__`` methods of the Parameter class
- fixed failure of ModelResult.dump() due to missing attributes
- ``guess_from_peak`` function now also works correctly with decreasing x-values or when using
  pandas
- the ``Parameter.set()`` method now correctly first updates the boundaries and then the value

Various:
- fixed typo for the use of expressions in the documentation
- removal of PY2-compatibility and unused code and improved test coverage
- removed deprecated ``isParameter`` function and automatic conversion of an ``uncertainties`` object
- inaccurate FWHM calculations were removed from built-in models, others labeled as estimates
- corrected spelling mistake for the Doniach lineshape and model
- removed unsupported/untested code for IPython notebooks in lmfit/ui/*
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2020/04/28 13:27:03 adam Exp $
d20 1
a20 1
PYTHON_VERSIONS_INCOMPATIBLE=	27
@


1.9
log
@py-lmfit: updated to 1.0.0

Version 1.0.0 Release Notes

New features:
- no new features are introduced in 1.0.0.

Improvements:
- support for Python 2 and use of the ``six`` package are removed.

Various:
- documentation updates to clarify the use of ``emcee``.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2020/01/18 23:32:52 rillig Exp $
d3 1
a3 1
DISTNAME=	lmfit-1.0.0
a15 1
DEPENDS+=	${PYPKGPREFIX}-six>=1.11.0:../../lang/py-six
@


1.8
log
@all: migrate several HOMEPAGEs to https

pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2019/06/15 07:21:21 adam Exp $
d3 1
a3 1
DISTNAME=	lmfit-0.9.13
d13 3
a15 3
DEPENDS+=	${PYPKGPREFIX}-asteval>=0.9.12:../../math/py-asteval
DEPENDS+=	${PYPKGPREFIX}-numpy>=1.10:../../math/py-numpy
DEPENDS+=	${PYPKGPREFIX}-scipy>=0.19:../../math/py-scipy
d17 1
a17 1
DEPENDS+=	${PYPKGPREFIX}-uncertainties>=3.0:../../math/py-uncertainties
d21 1
a21 1
PYTHON_VERSIONS_INCOMPATIBLE=	27	# py-scipy
@


1.7
log
@py-lmfit: updated to 0.9.13

Version 0.9.13 Release Notes

New features:
Clearer warning message in fit reports when uncertainties should but cannot be estimated, including guesses of which Parameters to examine
SplitLorenztianModel and split_lorentzian function
HTML representations for Parameter, MinimizerResult, and Model so that they can be printed better with Jupyter
support parallelization for differential evolution

Bug fixes:
delay import of matplotlib (and so, the selection of its backend) as late as possible
fix for saving, loading, and reloading ModelResults
fix to leastsq to report the best-fit values, not the values tried last
fix synchronization of all parameter values on Model.guess()
improve deprecation warnings for outdated nan_policy keywords
fix for edge case in gformat()

Project managements:
using pre-commit framework to improve and enforce coding style
added code coverage report to github main page
updated docs, github templates, added several tests.
dropped support and testing for Python 3.4.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2018/12/03 20:41:44 adam Exp $
d9 1
a9 1
HOMEPAGE=	http://lmfit.github.io/lmfit-py/
@


1.6
log
@py-lmfit: updated to 0.9.12

Version 0.9.12 Release Notes

New features:
- SkewedVoigtModel was added as built-in model
- Parameter uncertainties and correlations are reported for least_squares
- Plotting of complex-valued models is now handled in ModelResult class
- A model's independent variable is allowed to be an object
- Added usersyms to Parameters() initialization to make it easier to add custom functions and symbols
- the numdifftools package can be used to calculate parameter uncertainties and correlations for all solvers that do not natively support this
- emcee can now be used as method keyword-argument to Minimizer.minimize and minimize function, which allows for using emcee in the Model class

(Bug)fixes:
- asteval errors are now flushed after raising
- max_time and evaluation time for ExpressionModel increased to 1 hour
- loading a saved ModelResult now restores all attributes
- development versions of scipy and emcee are now supported
- ModelResult.eval() do no longer overwrite the userkws dictionary
- running the test suite requires pytest only
- improved FWHM calculation for VoigtModel
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2018/07/13 06:22:35 adam Exp $
d3 1
a3 1
DISTNAME=	lmfit-0.9.12
d15 1
a15 1
DEPENDS+=	${PYPKGPREFIX}-scipy>=0.17:../../math/py-scipy
d17 1
d21 2
@


1.5
log
@py-lmfit: updated to 0.9.11

0.9.11:
make exception explicit

0.9.10:
add AMPGO and basin-hopping global optimization methods.
aborting a fit from the objective function now raises AbortFitException
fit statistics are more uniformly calculated.
the uncertainties package is now an external dependency, and an out-dated copy is no longer kept in lmfit.
more exceptions when import matplotlib are now tolerated.
many documentation fixes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2018/04/14 05:32:22 adam Exp $
d3 1
a3 1
DISTNAME=	lmfit-0.9.11
@


1.4
log
@py-lmfit: updated to 0.9.9

Version 0.9.9:
Lmfit now uses the asteval (https://github.com/newville/asteval) package
instead of distributing its own copy. The minimum required asteval version
is 0.9.12, which is available on PyPi. If you see import errors related to
asteval, please make sure that you actually have the latest version installed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2018/02/27 06:40:07 adam Exp $
d3 1
a3 1
DISTNAME=	lmfit-0.9.9
@


1.3
log
@py-lmfit: updated to 0.9.8

0.9.8:
update doc for 5 digit-precision fit statistics
increase default precision for chi-square, etc from 3 to 5
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2017/08/31 08:27:42 prlw1 Exp $
d3 1
a3 1
DISTNAME=	lmfit-0.9.8
d13 4
a16 3
DEPENDS+=	${PYPKGPREFIX}-numpy-[0-9]*:../../math/py-numpy
DEPENDS+=	${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy
DEPENDS+=	${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
@


1.2
log
@Update py-lmfit to 0.9.7

Changes to 0.9.7 not immediately obvious

Version 0.9.6 Release Notes

   Support for SciPy 0.14 has been dropped: SciPy 0.15 is now required.
   This is especially important for lmfit maintenance, as it means we can
   now rely on SciPy having code for differential evolution and do not
   need to keep a local copy.

   A brute force method was added, which can be used either with
   Minimizer.brute() or using the method='brute' option to
   Minimizer.minimize(). This method requires finite bounds on all varying
   parameters, or that parameters have a finite brute_step attribute set
   to specify the step size.

   Custom cost functions can now be used for the scalar minimizers using
   the reduce_fcn option.

   Many improvements to documentation and docstrings in the code were
   made. As part of that effort, all API documentation in this main Sphinx
   documentation now derives from the docstrings.
   Uncertainties in the resulting best-fit for a model can now be
   calculated from the uncertainties in the model parameters.

   Parameters have two new attributes: brute_step, to specify the step
   size when using the brute method, and user_data, which is unused but
   can be used to hold additional information the user may desire. This
   will be preserved on copy and pickling.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2016/09/16 15:20:31 prlw1 Exp $
d3 1
a3 1
DISTNAME=	lmfit-0.9.7
d5 1
a5 1
CATEGORIES=	math
d13 4
a18 2
DEPENDS+=	${PYPKGPREFIX}-scipy>=0.19:../../math/py-scipy

@


1.1
log
@Add py-lmfit 0.9.5

A library for least-squares minimization and data fitting in Python,
based on scipy.optimize.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	lmfit-0.9.5
d9 1
a9 1
HOMEPAGE=	https://pypi.python.org/pypi/lmfit/
d15 1
a15 1
DEPENDS+=	${PYPKGPREFIX}-scipy-[0-9]*:../../math/py-scipy
@

