From b5bc687625bd3911ce0063946fdc97f13b96aee2 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Sun, 7 Jan 2024 17:24:11 +0100 Subject: [PATCH 1/2] [ci] Removed codeql workflow. --- .github/workflows/codeql.yml | 39 ------------------------------------ 1 file changed, 39 deletions(-) delete mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 33f1b1ee..00000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: - - master - - develop - pull_request: - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'python' ] - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 - with: - category: "/language:${{matrix.language}}" From df1873b5ac16e8ec9a4b10a4521cac30343a5979 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann <82444481+jkuhl-uni@users.noreply.github.com> Date: Thu, 11 Jan 2024 17:48:51 +0100 Subject: [PATCH 2/2] Throw error when trying to only find idls that are not present (#224) --- pyerrors/input/openQCD.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyerrors/input/openQCD.py b/pyerrors/input/openQCD.py index 36fa21b6..158bcaca 100644 --- a/pyerrors/input/openQCD.py +++ b/pyerrors/input/openQCD.py @@ -1286,7 +1286,9 @@ def read_ms5_xsf(path, prefix, qc, corr, sep="r", **kwargs): imagsamples[repnum][t].append(corrres[1][t]) if 'idl' in kwargs: left_idl = list(left_idl) - if len(left_idl) > 0: + if expected_idl[repnum] == left_idl: + raise ValueError("None of the idls searched for were found in replikum of file " + file) + elif len(left_idl) > 0: warnings.warn('Could not find idls ' + str(left_idl) + ' in replikum of file ' + file, UserWarning) repnum += 1 s = "Read correlator " + corr + " from " + str(repnum) + " replika with idls" + str(realsamples[0][t])