feat: explicit check for Zeuthen_flow in read_gf_coupling added.

This commit is contained in:
Fabian Joswig 2022-07-12 11:11:36 +01:00
parent 3336ac739e
commit d0180d7967
2 changed files with 5 additions and 0 deletions

View file

@ -613,6 +613,9 @@ def read_gf_coupling(path, prefix, c, dtr_cnfg=1, Zeuthen_flow=True, **kwargs):
if T != L:
raise Exception("The required lattice norm is only implemented for T=L at the moment.")
if Zeuthen_flow is not True:
raise Exception("The required lattice norm is only implemented for the Zeuthen flow at the moment.")
t = (c * L) ** 2 / 8
normdict = {4: 0.012341170468270,

View file

@ -106,3 +106,5 @@ def test_gf_coupling():
gf = pe.input.openQCD.read_gf_coupling(path, prefix, c=0.3)
with pytest.raises(Exception):
pe.input.openQCD.read_gf_coupling(path, prefix, c=0.35)
with pytest.raises(Exception):
pe.input.openQCD.read_gf_coupling(path, prefix, c=0.3, Zeuthen_flow=False)