From 6f4dd6c46c5f2b968ac1ae50f8299f9392c33ea3 Mon Sep 17 00:00:00 2001 From: Fabian Joswig Date: Fri, 18 Nov 2022 16:10:15 +0000 Subject: [PATCH] feat: postfix kwarg added to functions which read flow observables in openQCD submodule. --- pyerrors/input/openQCD.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyerrors/input/openQCD.py b/pyerrors/input/openQCD.py index 5ac279b1..e582d2cd 100644 --- a/pyerrors/input/openQCD.py +++ b/pyerrors/input/openQCD.py @@ -553,6 +553,8 @@ def read_qtop(path, prefix, c, dtr_cnfg=1, version="openQCD", **kwargs): files : list specify the exact files that need to be read from path, practical if e.g. only one replicum is needed + postfix : str + postfix of the file to read, e.g. '.gfms.dat' for openQCD-files names : list Alternative labeling for replicas/ensembles. Has to have the appropriate length. @@ -598,6 +600,8 @@ def read_gf_coupling(path, prefix, c, dtr_cnfg=1, Zeuthen_flow=True, **kwargs): names : list Alternative labeling for replicas/ensembles. Has to have the appropriate length. + postfix : str + postfix of the file to read, e.g. '.gfms.dat' for openQCD-files Zeuthen_flow : bool (optional) If True, the Zeuthen flow is used for the coupling. If False, the Wilson flow is used. """ @@ -676,6 +680,8 @@ def _read_flow_obs(path, prefix, c, dtr_cnfg=1, version="openQCD", obspos=0, sum names : list Alternative labeling for replicas/ensembles. Has to have the appropriate length. + postfix : str + postfix of the file to read, e.g. '.gfms.dat' for openQCD-files Zeuthen_flow : bool (optional) If True, the Zeuthen flow is used for Qtop. Only possible for version=='sfqcd' If False, the Wilson flow is used. @@ -701,6 +707,9 @@ def _read_flow_obs(path, prefix, c, dtr_cnfg=1, version="openQCD", obspos=0, sum L = kwargs.get("L") postfix = ".ms.dat" + if "postfix" in kwargs: + postfix = kwargs.get("postfix") + if "files" in kwargs: files = kwargs.get("files") postfix = ''