Skip to content

Commit c9e5ff6

Browse files
committed
Solve bug introduced in info file, fix related benchmark
1 parent 10289b8 commit c9e5ff6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

benchmarks/ekobox/benchmark_evol_pdf.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def benchmark_evolve_single_member(
2020
mugrid = [(3.0, 4), (10.0, 5), (100.0, 5)]
2121
theory = theory_card
2222
theory.order = (1, 0)
23-
theory.couplings.alphas.value = 0.118000
24-
theory.couplings.alphas.scale = 91.1876
25-
theory.couplings.alphaem.value = 0.007496
23+
theory.couplings.alphas = 0.118000
24+
theory.couplings.scale = 91.1876
25+
theory.couplings.alphaem = 0.007496
2626
theory.couplings.max_num_flavs = 3
2727
theory.heavy.num_flavs_max_pdf = 3
2828
theory.heavy.masses.c.value = 1.3
@@ -49,7 +49,7 @@ def benchmark_evolve_single_member(
4949
ev_pdf = lhapdf.mkPDF("EvPDF", 0)
5050
assert info["XMin"] == op.xgrid.raw[0]
5151
assert info["SetDesc"] == "MyEvolvedPDF"
52-
assert info["MZ"] == theory.couplings.alphas.scale
52+
assert info["MZ"] == theory.couplings.scale
5353
assert info["Debug"] == "Debug"
5454
xgrid = op.xgrid.raw
5555
for idx, mu2 in enumerate(op.mu2grid):

src/ekobox/info_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def build(
4848
template_info["OrderQCD"] = theory_card.order[0] - 1
4949
template_info["QMin"] = round(math.sqrt(operators_card.mu2grid[0]), 4)
5050
template_info["QMax"] = round(math.sqrt(operators_card.mu2grid[-1]), 4)
51-
template_info["MZ"] = theory_card.couplings.alphas
51+
template_info["MZ"] = theory_card.couplings.scale
5252
template_info["MUp"] = 0.0
5353
template_info["MDown"] = 0.0
5454
template_info["MStrange"] = 0.0

0 commit comments

Comments
 (0)