mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 03:53:41 +02:00
fix: unreachable statement in input.misc.read_pbp removed.
This commit is contained in:
parent
abdeace107
commit
d600793d0e
1 changed files with 4 additions and 10 deletions
|
@ -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)
|
||||
|
||||
nsrc = []
|
||||
for i in range(nrw):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue