From ac7e98d1afd3ad836bef30d9d92f5455e8a1de08 Mon Sep 17 00:00:00 2001 From: Justus Kuhlmann Date: Wed, 7 May 2025 07:32:29 +0000 Subject: [PATCH] simple fix for openQCD in test fails --- pyerrors/input/openQCD.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyerrors/input/openQCD.py b/pyerrors/input/openQCD.py index 14f76847..8ba0ac6c 100644 --- a/pyerrors/input/openQCD.py +++ b/pyerrors/input/openQCD.py @@ -69,11 +69,11 @@ def read_rwms(path: str, prefix: str, version: str='2.0', names: Optional[list[s replica = len(ls) - r_start: list[int] = kwargs.get('r_start', [-1] * replica) + r_start: list[Union[int, None]] = kwargs.get('r_start', [None] * replica) if len(r_start) != replica: raise Exception('r_start does not match number of replicas') - r_stop: list[int] = kwargs.get('r_stop', [-1] * replica) + r_stop: list[Union[int, None]] = kwargs.get('r_stop', [None] * replica) if len(r_stop) != replica: raise Exception('r_stop does not match number of replicas') @@ -287,13 +287,13 @@ def _extract_flowed_energy_density(path: str, prefix: str, dtr_read: int, xmin: replica = len(ls) - r_start: list[int] = kwargs.get('r_start', [-1] * replica) + r_start: list[Union[int, None]] = kwargs.get('r_start', [None] * replica) if len(r_start) != replica: raise Exception('r_start does not match number of replicas') - r_stop: list[int] = kwargs.get('r_start', [-1] * replica) + r_stop: list[Union[int, None]] = kwargs.get('r_stop', [None] * replica) if len(r_stop) != replica: - raise Exception('r_start does not match number of replicas') + raise Exception('r_stop does not match number of replicas') r_step = kwargs.get('r_step', 1)