From 53f727092d46113e2d4a335bfdc85b5393227be3 Mon Sep 17 00:00:00 2001 From: jkuhl-uni Date: Mon, 10 Jan 2022 11:45:42 +0100 Subject: [PATCH] small bug fix enabling older versions of python --- pyerrors/input/sfcf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyerrors/input/sfcf.py b/pyerrors/input/sfcf.py index 5095e3ce..af14041b 100644 --- a/pyerrors/input/sfcf.py +++ b/pyerrors/input/sfcf.py @@ -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: