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

address issue #322 #323

Merged
merged 5 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
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
4 changes: 1 addition & 3 deletions src/eko/runner/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ def __init__(
couplings=cs,
interpol_dispatcher=bfd,
n3lo_ad_variation=new_theory.n3lo_ad_variation,
matching_order=new_theory.matching_order
if new_theory.matching_order is not None
else new_theory.order,
matching_order=new_theory.matching_order,
)

with EKO.create(path) as builder:
Expand Down
2 changes: 1 addition & 1 deletion src/eko/runner/parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def evolve_configs(eko: EKO) -> dict:
n3lo_ad_variation=tcard.n3lo_ad_variation,
matching_order=tcard.matching_order
if tcard.matching_order is not None
else tcard.order,
else (tcard.order[0] - 1, tcard.order[1] - 1),
felixhekhorn marked this conversation as resolved.
Show resolved Hide resolved
)


Expand Down
22 changes: 22 additions & 0 deletions tests/eko/runner/test_parts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from eko.runner import parts


def test_evolve_configs(eko_factory):
# QCD@LO
e10 = eko_factory.get()
assert e10.theory_card.order == (1, 0)
p10 = parts.evolve_configs(e10)
assert p10["matching_order"] == (0, 0)
# QCD@N3LO + QED@N2LO w/o matching_order
eko_factory.theory.order = (4, 3)
eko_factory.theory.matching_order = None
e43 = eko_factory.get({})
assert e43.theory_card.order == (4, 3)
p43 = parts.evolve_configs(e43)
assert p43["matching_order"] == (3, 2)
# QCD@N3LO + QED@N2LO w/ matching_order
eko_factory.theory.matching_order = (3, 0)
e43b = eko_factory.get({})
assert e43b.theory_card.order == (4, 3)
p43b = parts.evolve_configs(e43b)
assert p43b["matching_order"] == (3, 0)
Loading