From d7bd8b15ec62c4e66cbdeea8099d9e772639b301 Mon Sep 17 00:00:00 2001 From: "Juan M. Cruz-Martinez" Date: Tue, 6 Jun 2023 16:44:37 +0200 Subject: [PATCH 1/5] use NumFlavors from the theory card --- src/ekobox/info_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ekobox/info_file.py b/src/ekobox/info_file.py index f5a3d7b77..cc4cc2faa 100644 --- a/src/ekobox/info_file.py +++ b/src/ekobox/info_file.py @@ -39,7 +39,7 @@ def build( template_info["Authors"] = "" template_info["FlavorScheme"] = "variable" template_info.update(info_update) - template_info["NumFlavors"] = 14 + template_info["NumFlavors"] = theory.couplings.max_num_flavs template_info["Flavors"] = [-6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 21, 22] # TODO actually point to input grid template_info["XMin"] = float(operators_card.xgrid.raw[0]) From f09b1ab7a8365d4e4fff6d0caf39fdd4579c3625 Mon Sep 17 00:00:00 2001 From: "Juan M. Cruz-Martinez" Date: Tue, 6 Jun 2023 16:47:54 +0200 Subject: [PATCH 2/5] Update src/ekobox/info_file.py --- src/ekobox/info_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ekobox/info_file.py b/src/ekobox/info_file.py index cc4cc2faa..bfd1bdbff 100644 --- a/src/ekobox/info_file.py +++ b/src/ekobox/info_file.py @@ -39,7 +39,7 @@ def build( template_info["Authors"] = "" template_info["FlavorScheme"] = "variable" template_info.update(info_update) - template_info["NumFlavors"] = theory.couplings.max_num_flavs + template_info["NumFlavors"] = theory_card.couplings.max_num_flavs template_info["Flavors"] = [-6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 21, 22] # TODO actually point to input grid template_info["XMin"] = float(operators_card.xgrid.raw[0]) From d4219527b9a5218d8f0e8165e93f0bce428f75f7 Mon Sep 17 00:00:00 2001 From: Felix Hekhorn Date: Tue, 6 Jun 2023 17:11:32 +0200 Subject: [PATCH 3/5] Update src/ekobox/info_file.py --- src/ekobox/info_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ekobox/info_file.py b/src/ekobox/info_file.py index bfd1bdbff..89caedf09 100644 --- a/src/ekobox/info_file.py +++ b/src/ekobox/info_file.py @@ -39,7 +39,7 @@ def build( template_info["Authors"] = "" template_info["FlavorScheme"] = "variable" template_info.update(info_update) - template_info["NumFlavors"] = theory_card.couplings.max_num_flavs + template_info["NumFlavors"] = theory_card.heavy.num_flavs_max_pdf template_info["Flavors"] = [-6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 21, 22] # TODO actually point to input grid template_info["XMin"] = float(operators_card.xgrid.raw[0]) From 95abc7fba621fe67ca30b5ae846fffc58d28fe35 Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Wed, 7 Jun 2023 19:01:17 +0200 Subject: [PATCH 4/5] Update src/ekobox/info_file.py --- src/ekobox/info_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ekobox/info_file.py b/src/ekobox/info_file.py index 89caedf09..509259c8c 100644 --- a/src/ekobox/info_file.py +++ b/src/ekobox/info_file.py @@ -39,7 +39,7 @@ def build( template_info["Authors"] = "" template_info["FlavorScheme"] = "variable" template_info.update(info_update) - template_info["NumFlavors"] = theory_card.heavy.num_flavs_max_pdf + template_info["NumFlavors"] = max(nf for _, nf in op.mugrid) template_info["Flavors"] = [-6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 21, 22] # TODO actually point to input grid template_info["XMin"] = float(operators_card.xgrid.raw[0]) From cf194ffb01f4f7597af4002a94306eb9c293472b Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Wed, 7 Jun 2023 21:49:15 +0200 Subject: [PATCH 5/5] Reference opcard with the correct variable --- src/ekobox/info_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ekobox/info_file.py b/src/ekobox/info_file.py index 509259c8c..2f99d8377 100644 --- a/src/ekobox/info_file.py +++ b/src/ekobox/info_file.py @@ -39,7 +39,7 @@ def build( template_info["Authors"] = "" template_info["FlavorScheme"] = "variable" template_info.update(info_update) - template_info["NumFlavors"] = max(nf for _, nf in op.mugrid) + template_info["NumFlavors"] = max(nf for _, nf in operators_card.mugrid) template_info["Flavors"] = [-6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 21, 22] # TODO actually point to input grid template_info["XMin"] = float(operators_card.xgrid.raw[0])