mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-03-15 06:40:24 +01: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.sort(key=lambda x: int(re.findall(r'\d+', x)[-1]))
|
||||
for entry in ls:
|
||||
myentry = entry.removesuffix("."+name)
|
||||
myentry = entry[:-len(name)-1]
|
||||
print(myentry)
|
||||
try:
|
||||
idx = myentry.index('r')
|
||||
except:
|
||||
|
|
Loading…
Add table
Reference in a new issue