From 0df5882d1f61b28fb2a2f018e3aeab4103d49220 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 1 Mar 2024 07:14:01 +0100 Subject: [PATCH 1/2] [ci] Include python 3.12 in ci after new dateutils release. (#229) --- .github/workflows/pytest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 1bdd412d..34c18faa 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] include: - os: macos-latest python-version: "3.10" From 254a19f321aac07e3b4a5f1c33e2bc2b3514c53a Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann <82444481+jkuhl-uni@users.noreply.github.com> Date: Mon, 25 Mar 2024 15:50:19 +0100 Subject: [PATCH 2/2] Catch error if no replica are found in the geiven directory (#230) --- pyerrors/input/sfcf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyerrors/input/sfcf.py b/pyerrors/input/sfcf.py index 94aa1948..64ce8899 100644 --- a/pyerrors/input/sfcf.py +++ b/pyerrors/input/sfcf.py @@ -184,6 +184,8 @@ def read_sfcf_multi(path, prefix, name_list, quarks_list=['.*'], corr_type_list= else: replica = len([file.split(".")[-1] for file in ls]) // len(set([file.split(".")[-1] for file in ls])) + if replica == 0: + raise Exception('No replica found in directory') if not silent: print('Read', part, 'part of', name_list, 'from', prefix[:-1], ',', replica, 'replica')