simple fix for openQCD in test fails

This commit is contained in:
Justus Kuhlmann 2025-05-07 07:32:29 +00:00
parent f3e7cdec28
commit ac7e98d1af

View file

@ -69,11 +69,11 @@ def read_rwms(path: str, prefix: str, version: str='2.0', names: Optional[list[s
replica = len(ls) 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: if len(r_start) != replica:
raise Exception('r_start does not match number of replicas') 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: if len(r_stop) != replica:
raise Exception('r_stop does not match number of replicas') 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) 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: if len(r_start) != replica:
raise Exception('r_start does not match number of replicas') 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: 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) r_step = kwargs.get('r_step', 1)