From 0b6b98990defda26077b69d1bab999b6765a7c87 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Wed, 1 Jun 2022 15:03:55 +0100 Subject: [PATCH 1/2] build: scipy version 1 or greater required. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 0a648496..31d810fc 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup(name='pyerrors', license="MIT", packages=find_packages(), python_requires='>=3.6.0', - install_requires=['numpy>=1.16', 'autograd>=1.4', 'numdifftools', 'matplotlib>=3.3', 'scipy', 'iminuit>=2', 'h5py', 'lxml', 'python-rapidjson'], + install_requires=['numpy>=1.16', 'autograd>=1.4', 'numdifftools', 'matplotlib>=3.3', 'scipy>=1', 'iminuit>=2', 'h5py', 'lxml', 'python-rapidjson'], classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Science/Research', From 6bd724715fbf156d1a46857575e6efa414fa0c1f Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Mon, 6 Jun 2022 15:04:16 +0100 Subject: [PATCH 2/2] fix: Fit_result.gamma_method can now be called with kwargs --- pyerrors/fits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyerrors/fits.py b/pyerrors/fits.py index ebe24df5..6c7ea066 100644 --- a/pyerrors/fits.py +++ b/pyerrors/fits.py @@ -34,9 +34,9 @@ class Fit_result(Sequence): def __len__(self): return len(self.fit_parameters) - def gamma_method(self): + def gamma_method(self, **kwargs): """Apply the gamma method to all fit parameters""" - [o.gamma_method() for o in self.fit_parameters] + [o.gamma_method(**kwargs) for o in self.fit_parameters] def __str__(self): my_str = 'Goodness of fit:\n'