1
0
Fork 0
mirror of https://github.com/fjosw/pyerrors.git synced 2025-03-16 15:20:24 +01:00

feat: postfix kwarg added to functions which read flow observables in

openQCD submodule.
This commit is contained in:
Fabian Joswig 2022-11-18 16:10:15 +00:00
parent 64e564c5fc
commit 6f4dd6c46c
No known key found for this signature in database

View file

@ -553,6 +553,8 @@ def read_qtop(path, prefix, c, dtr_cnfg=1, version="openQCD", **kwargs):
files : list files : list
specify the exact files that need to be read specify the exact files that need to be read
from path, practical if e.g. only one replicum is needed 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 names : list
Alternative labeling for replicas/ensembles. Alternative labeling for replicas/ensembles.
Has to have the appropriate length. 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 names : list
Alternative labeling for replicas/ensembles. Alternative labeling for replicas/ensembles.
Has to have the appropriate length. Has to have the appropriate length.
postfix : str
postfix of the file to read, e.g. '.gfms.dat' for openQCD-files
Zeuthen_flow : bool Zeuthen_flow : bool
(optional) If True, the Zeuthen flow is used for the coupling. If False, the Wilson flow is used. (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 names : list
Alternative labeling for replicas/ensembles. Alternative labeling for replicas/ensembles.
Has to have the appropriate length. Has to have the appropriate length.
postfix : str
postfix of the file to read, e.g. '.gfms.dat' for openQCD-files
Zeuthen_flow : bool Zeuthen_flow : bool
(optional) If True, the Zeuthen flow is used for Qtop. Only possible (optional) If True, the Zeuthen flow is used for Qtop. Only possible
for version=='sfqcd' If False, the Wilson flow is used. 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") L = kwargs.get("L")
postfix = ".ms.dat" postfix = ".ms.dat"
if "postfix" in kwargs:
postfix = kwargs.get("postfix")
if "files" in kwargs: if "files" in kwargs:
files = kwargs.get("files") files = kwargs.get("files")
postfix = '' postfix = ''