From bde7db4a4bef6cd383e1530c066f1ce872b2f567 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Tue, 22 Nov 2022 14:42:24 +0000 Subject: [PATCH 1/2] build: test dependencies added as extra to setup.py. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index a06ceca9..3aa4d889 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ setup(name='pyerrors', packages=find_packages(), python_requires='>=3.7.0', install_requires=['numpy>=1.19', 'autograd>=1.5', 'numdifftools>=0.9.41', 'matplotlib>=3.5', 'scipy>=1.7', 'iminuit>=2.17', 'h5py>=3.7', 'lxml>=4.9', 'python-rapidjson>=1.9', 'pandas>=1.1'], + extras_require={'test': ['pytest', 'pytest-cov', 'pytest-benchmark']}, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Science/Research', From 6258a4484e8f1ab861360d6f2630ca46405824dd Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Mon, 28 Nov 2022 15:31:19 +0000 Subject: [PATCH 2/2] fix: minor bug in input.hadrons.read_DistillationContraction_hd5 fixed. --- pyerrors/input/hadrons.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyerrors/input/hadrons.py b/pyerrors/input/hadrons.py index 0f967423..3d7ab99b 100644 --- a/pyerrors/input/hadrons.py +++ b/pyerrors/input/hadrons.py @@ -142,6 +142,8 @@ def read_DistillationContraction_hd5(path, ens_id, diagrams=["direct"], idl=None for explore_file in explore_path.iterdir(): if explore_file.is_file(): stem = explore_file.with_suffix("").with_suffix("").as_posix().split("/")[-1] + else: + continue file_list = [] for dir in directories: