From f9fe5c7ec9c8e22f48c0519b40f52f91839ac123 Mon Sep 17 00:00:00 2001 From: jkuhl-uni Date: Wed, 21 Dec 2022 15:34:14 +0100 Subject: [PATCH] small changes to rep names --- pyerrors/input/openQCD.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyerrors/input/openQCD.py b/pyerrors/input/openQCD.py index ce6f181f..de972b9e 100644 --- a/pyerrors/input/openQCD.py +++ b/pyerrors/input/openQCD.py @@ -1034,7 +1034,10 @@ def read_ms5_xsf(path, prefix, qc, corr, sep = "r", **kwargs): for f in found: if fnmatch.fnmatch(f, prefix + "*.ms5_xsf_"+qc+".dat"): files.append(f) - names.append(prefix+"|r"+f.split(".")[0].split(sep)[1]) + if not sep == "": + names.append(prefix+"|r"+f.split(".")[0].split(sep)[1]) + else: + names.append(prefix) files = sorted(files) if "names" in kwargs: