mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 11:33:42 +02:00
simple fix for openQCD in test fails
This commit is contained in:
parent
f3e7cdec28
commit
ac7e98d1af
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue