From dac7193398e0bec3d2e047fcb9d5818805901848 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 23 Jun 2023 10:17:09 +0100 Subject: [PATCH 1/2] build: autograd dependency bumped to 1.6.2 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 980ce3ab..b41b95b3 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ setup(name='pyerrors', license="MIT", packages=find_packages(), python_requires='>=3.8.0', - install_requires=['numpy>=1.24', 'autograd>=1.6', 'numdifftools>=0.9.41', 'matplotlib>=3.7', 'scipy>=1.10', 'iminuit>=2.21', 'h5py>=3.8', 'lxml>=4.9', 'python-rapidjson>=1.10', 'pandas>=2.0'], + install_requires=['numpy>=1.24', 'autograd>=1.6.2', 'numdifftools>=0.9.41', 'matplotlib>=3.7', 'scipy>=1.10', 'iminuit>=2.21', 'h5py>=3.8', 'lxml>=4.9', 'python-rapidjson>=1.10', 'pandas>=2.0'], extras_require={'test': ['pytest', 'pytest-cov', 'pytest-benchmark', 'hypothesis']}, classifiers=[ 'Development Status :: 5 - Production/Stable', From 838118970865e88edeb7b9d4c1d9eeba48bac0c5 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 23 Jun 2023 13:24:35 +0100 Subject: [PATCH 2/2] refactor: plot_piechart slightly simplified. --- pyerrors/obs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyerrors/obs.py b/pyerrors/obs.py index d1e4f5c7..e32ca821 100644 --- a/pyerrors/obs.py +++ b/pyerrors/obs.py @@ -627,7 +627,7 @@ class Obs: if save: fig1.savefig(save) - return dict(zip(self.e_names, sizes)) + return dict(zip(labels, sizes)) def dump(self, filename, datatype="json.gz", description="", **kwargs): """Dump the Obs to a file 'name' of chosen format.