small changes to rep names

This commit is contained in:
jkuhl-uni 2022-12-21 15:34:14 +01:00
parent f91c4adff4
commit f9fe5c7ec9

View file

@ -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: