Skip to content

Commit

Permalink
Solve bug introduced in info file, fix related benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Mar 31, 2023
1 parent 10289b8 commit c9e5ff6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions benchmarks/ekobox/benchmark_evol_pdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def benchmark_evolve_single_member(
mugrid = [(3.0, 4), (10.0, 5), (100.0, 5)]
theory = theory_card
theory.order = (1, 0)
theory.couplings.alphas.value = 0.118000
theory.couplings.alphas.scale = 91.1876
theory.couplings.alphaem.value = 0.007496
theory.couplings.alphas = 0.118000
theory.couplings.scale = 91.1876
theory.couplings.alphaem = 0.007496
theory.couplings.max_num_flavs = 3
theory.heavy.num_flavs_max_pdf = 3
theory.heavy.masses.c.value = 1.3
Expand All @@ -49,7 +49,7 @@ def benchmark_evolve_single_member(
ev_pdf = lhapdf.mkPDF("EvPDF", 0)
assert info["XMin"] == op.xgrid.raw[0]
assert info["SetDesc"] == "MyEvolvedPDF"
assert info["MZ"] == theory.couplings.alphas.scale
assert info["MZ"] == theory.couplings.scale
assert info["Debug"] == "Debug"
xgrid = op.xgrid.raw
for idx, mu2 in enumerate(op.mu2grid):
Expand Down
2 changes: 1 addition & 1 deletion src/ekobox/info_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def build(
template_info["OrderQCD"] = theory_card.order[0] - 1
template_info["QMin"] = round(math.sqrt(operators_card.mu2grid[0]), 4)
template_info["QMax"] = round(math.sqrt(operators_card.mu2grid[-1]), 4)
template_info["MZ"] = theory_card.couplings.alphas
template_info["MZ"] = theory_card.couplings.scale
template_info["MUp"] = 0.0
template_info["MDown"] = 0.0
template_info["MStrange"] = 0.0
Expand Down

0 comments on commit c9e5ff6

Please sign in to comment.