mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
small bug fix enabling older versions of python
This commit is contained in:
parent
ebdc17aa66
commit
53f727092d
1 changed files with 2 additions and 1 deletions
|
@ -137,7 +137,8 @@ def read_sfcf(path, prefix, name, quarks='.*', noffset=0, wf=0, wf2=0, version =
|
||||||
ls = list(set(ls) - set([exc]))
|
ls = list(set(ls) - set([exc]))
|
||||||
ls.sort(key=lambda x: int(re.findall(r'\d+', x)[-1]))
|
ls.sort(key=lambda x: int(re.findall(r'\d+', x)[-1]))
|
||||||
for entry in ls:
|
for entry in ls:
|
||||||
myentry = entry.removesuffix("."+name)
|
myentry = entry[:-len(name)-1]
|
||||||
|
print(myentry)
|
||||||
try:
|
try:
|
||||||
idx = myentry.index('r')
|
idx = myentry.index('r')
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue