From d600793d0e0db8574aa63dd285cffb53c41c837a Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Wed, 15 Jun 2022 14:07:35 +0100 Subject: [PATCH] fix: unreachable statement in input.misc.read_pbp removed. --- pyerrors/input/misc.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pyerrors/input/misc.py b/pyerrors/input/misc.py index 2e148d90..fe75fb1a 100644 --- a/pyerrors/input/misc.py +++ b/pyerrors/input/misc.py @@ -17,8 +17,6 @@ def read_pbp(path, prefix, **kwargs): list which contains the last config to be read for each replicum """ - extract_nfct = 1 - ls = [] for (dirpath, dirnames, filenames) in os.walk(path): ls.extend(filenames) @@ -78,14 +76,10 @@ def read_pbp(path, prefix, **kwargs): # This block is necessary for openQCD1.6 ms1 files nfct = [] - if extract_nfct == 1: - for i in range(nrw): - t = fp.read(4) - nfct.append(struct.unpack('i', t)[0]) - print('nfct: ', nfct) # Hasenbusch factor, 1 for rat reweighting - else: - for i in range(nrw): - nfct.append(1) + for i in range(nrw): + t = fp.read(4) + nfct.append(struct.unpack('i', t)[0]) + print('nfct: ', nfct) # Hasenbusch factor, 1 for rat reweighting nsrc = [] for i in range(nrw):