Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix apfel benchmarks #274

Merged
merged 17 commits into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ekomark/benchmark/external/apfel_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def compute_apfel_data(

# Run
apf_tabs = {}
for mu2 in operators["Q2grid"]:
apfel.EvolveAPFEL(theory["Q0"], np.sqrt(mu2))
for mu in operators["mugrid"]:
felixhekhorn marked this conversation as resolved.
Show resolved Hide resolved
apfel.EvolveAPFEL(theory["Q0"], np.sqrt(mu**2))
niclaurenti marked this conversation as resolved.
Show resolved Hide resolved
print(f"Executing APFEL took {(time.perf_counter() - apf_start)} s")

tab = {}
Expand Down Expand Up @@ -111,7 +111,7 @@ def compute_apfel_data(
evol_pdf = rotate_flavor_to_evolution @ pdfs
tab = dict(zip(evol_basis, evol_pdf))

apf_tabs[mu2] = tab
apf_tabs[mu**2] = tab

ref = {
"target_xgrid": target_xgrid,
Expand Down
6 changes: 3 additions & 3 deletions src/ekomark/benchmark/external/pegasus_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ def compute_pegasus_data(theory, operators, skip_pdfs, rotate_to_evolution_basis

# run pegaus
out_tabs = {}
for mu2 in operators["Q2grid"]:
for mu in operators["mugrid"]:
tab = {}
for x in target_xgrid:
# last two numbers are the min and max pid to calculate,
# keep everthing for simplicity.
xf, _ = pegasus.xparton(x, mu2, -6, 6)
xf, _ = pegasus.xparton(x, mu**2, -6, 6)
temp = dict(zip(labels, xf))
for pid in labels:
if pid in skip_pdfs:
Expand All @@ -114,7 +114,7 @@ def compute_pegasus_data(theory, operators, skip_pdfs, rotate_to_evolution_basis
evol_pdf = rotate_flavor_to_evolution @ pdfs
tab = dict(zip(evol_basis, evol_pdf))

out_tabs[mu2] = tab
out_tabs[mu**2] = tab

ref = {"target_xgrid": target_xgrid, "values": out_tabs}

Expand Down