From 7b740c03d45847097ed3e38773643c2f8bf4bf98 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 18 Nov 2022 16:30:28 +0000 Subject: [PATCH] fix: bug in reading of flow observables fixed which appeared when specifying names. The files detected files were *not* alphabetically ordered so a wrong naming could happen in case one specifies names explicitly. --- pyerrors/input/openQCD.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyerrors/input/openQCD.py b/pyerrors/input/openQCD.py index e582d2cd..840ffc0e 100644 --- a/pyerrors/input/openQCD.py +++ b/pyerrors/input/openQCD.py @@ -723,6 +723,8 @@ def _read_flow_obs(path, prefix, c, dtr_cnfg=1, version="openQCD", obspos=0, sum if fnmatch.fnmatch(f, prefix + "*" + postfix): files.append(f) + files = sorted(files) + if 'r_start' in kwargs: r_start = kwargs.get('r_start') if len(r_start) != len(files):