dev-python/lmfit: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-05-04 21:14:17 +02:00
parent f7e1d84956
commit 2305e2d459
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
5 changed files with 0 additions and 157 deletions

View File

@ -1,3 +1 @@
DIST lmfit-1.3.1.tar.gz 629917 BLAKE2B 6cb5f478bf0b31ce6fe6ccfc97d216fae63f8efa159b30151896254352d3d0e1667d276101f93d357a0dabc39462bd110f115ff6e89c18739c1728f089f54d89 SHA512 b6766224ecd4c75e09a935ab86041852f22491870191c6b6b8cc0e5a873e7c69cb6f11517afa987289c63fb249a8ceef7c336e1c7c4e19d33a2e1bc04fbe6aa6
DIST lmfit-1.3.2.tar.gz 623945 BLAKE2B aa2f1a98a842199271c09297d1399fdc408c58114e67324503151e7701c7176e6b03d218d668d6bf002c0ad61474e18d11edbdacfb4b621533b8f958d0f2026d SHA512 2dbba258aa14bd9bdb032cfe93086e207da5398137a06031aa1f09a0f9c35636e89488ed1bd348cdc2a5ea140df839f5cb414d9d208ac7ddda5f7f11d0c058d4
DIST lmfit-1.3.3.tar.gz 632645 BLAKE2B 9a8634a92e20a113ae5d5907ff223fc083716d2a5ca07a37dbc4c47963a0af91369721557b8a95df377c098e75b269c2bbea054e9ad35d6574d04b3f996ee1a0 SHA512 d81f950b3f4f4f25f3e814e063925f6f92d3ff1b05ee23bf0d89fd23be993ed34122b8db2b1376481cbe93243facb1de9437268c2bb99c97d9421af5b8443de7

View File

@ -1,39 +0,0 @@
diff --git a/lmfit/parameter.py b/lmfit/parameter.py
index ca9ccc72..a7ec9a65 100644
--- a/lmfit/parameter.py
+++ b/lmfit/parameter.py
@@ -181,9 +181,8 @@ def __reduce__(self):
params = [self[k] for k in self]
# find the symbols from _asteval.symtable, that need to be remembered.
- sym_unique = self._asteval.user_defined_symbols()
unique_symbols = {key: deepcopy(self._asteval.symtable[key])
- for key in sym_unique}
+ for key in self._asteval.user_defined_symbols()}
return self.__class__, (), {'unique_symbols': unique_symbols,
'params': params}
@@ -567,9 +566,8 @@ def dumps(self, **kws):
"""
params = [p.__getstate__() for p in self.values()]
- sym_unique = self._asteval.user_defined_symbols()
unique_symbols = {key: encode4js(deepcopy(self._asteval.symtable[key]))
- for key in sym_unique}
+ for key in self._asteval.user_defined_symbols()}
return json.dumps({'unique_symbols': unique_symbols,
'params': params}, **kws)
diff --git a/tests/test_model.py b/tests/test_model.py
index 396ea0b1..24dfbfcd 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -900,7 +900,7 @@ def test_independent_var_parsing(self):
yatan = stepmod2.eval(pars, x=x)
assert (yatan-yline).std() > 0.1
- assert (yatan-yline).ptp() > 1.0
+ assert np.ptp(yatan-yline) > 1.0
voigtmod = Model(voigt)
assert 'x' in voigtmod.independent_vars

View File

@ -1,42 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
DESCRIPTION="Non-Linear Least-Squares Minimization and Curve-Fitting for Python"
HOMEPAGE="
https://lmfit.github.io/lmfit-py/
https://github.com/lmfit/lmfit-py/
https://pypi.org/project/lmfit/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/asteval-1.0.0[${PYTHON_USEDEP}]
>=dev-python/dill-0.3.4[${PYTHON_USEDEP}]
>=dev-python/numpy-1.19[${PYTHON_USEDEP}]
>=dev-python/scipy-1.6[${PYTHON_USEDEP}]
>=dev-python/uncertainties-3.1.4[${PYTHON_USEDEP}]
"
BDEPEND="
>=dev-python/setuptools-scm-6.2[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
PATCHES=(
# https://github.com/lmfit/lmfit-py/pull/959
"${FILESDIR}/${P}-np2.patch"
)
python_test() {
epytest -o addopts=
}

View File

@ -1,37 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="Non-Linear Least-Squares Minimization and Curve-Fitting for Python"
HOMEPAGE="
https://lmfit.github.io/lmfit-py/
https://github.com/lmfit/lmfit-py/
https://pypi.org/project/lmfit/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/asteval-0.9.28[${PYTHON_USEDEP}]
>=dev-python/dill-0.3.4[${PYTHON_USEDEP}]
>=dev-python/numpy-1.19[${PYTHON_USEDEP}]
>=dev-python/scipy-1.6[${PYTHON_USEDEP}]
>=dev-python/uncertainties-3.1.4[${PYTHON_USEDEP}]
"
BDEPEND="
>=dev-python/setuptools-scm-6.2[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
python_test() {
epytest -o addopts=
}

View File

@ -1,37 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
DESCRIPTION="Non-Linear Least-Squares Minimization and Curve-Fitting for Python"
HOMEPAGE="
https://lmfit.github.io/lmfit-py/
https://github.com/lmfit/lmfit-py/
https://pypi.org/project/lmfit/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/asteval-1.0.0[${PYTHON_USEDEP}]
>=dev-python/dill-0.3.4[${PYTHON_USEDEP}]
>=dev-python/numpy-1.19[${PYTHON_USEDEP}]
>=dev-python/scipy-1.6[${PYTHON_USEDEP}]
>=dev-python/uncertainties-3.2.2[${PYTHON_USEDEP}]
"
BDEPEND="
>=dev-python/setuptools-scm-6.2[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
python_test() {
epytest -o addopts=
}