mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-15 20:13: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
|
list which contains the last config to be read for each replicum
|
||||||
"""
|
"""
|
||||||
|
|
||||||
extract_nfct = 1
|
|
||||||
|
|
||||||
ls = []
|
ls = []
|
||||||
for (dirpath, dirnames, filenames) in os.walk(path):
|
for (dirpath, dirnames, filenames) in os.walk(path):
|
||||||
ls.extend(filenames)
|
ls.extend(filenames)
|
||||||
|
@ -78,14 +76,10 @@ def read_pbp(path, prefix, **kwargs):
|
||||||
|
|
||||||
# This block is necessary for openQCD1.6 ms1 files
|
# This block is necessary for openQCD1.6 ms1 files
|
||||||
nfct = []
|
nfct = []
|
||||||
if extract_nfct == 1:
|
|
||||||
for i in range(nrw):
|
for i in range(nrw):
|
||||||
t = fp.read(4)
|
t = fp.read(4)
|
||||||
nfct.append(struct.unpack('i', t)[0])
|
nfct.append(struct.unpack('i', t)[0])
|
||||||
print('nfct: ', nfct) # Hasenbusch factor, 1 for rat reweighting
|
print('nfct: ', nfct) # Hasenbusch factor, 1 for rat reweighting
|
||||||
else:
|
|
||||||
for i in range(nrw):
|
|
||||||
nfct.append(1)
|
|
||||||
|
|
||||||
nsrc = []
|
nsrc = []
|
||||||
for i in range(nrw):
|
for i in range(nrw):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue