Skip to content

Commit ab21423

Browse files
Make quark threshold dynamic in test, remove debug notebook and adjust documentation
1 parent 2796de8 commit ab21423

File tree

3 files changed

+8
-163
lines changed

3 files changed

+8
-163
lines changed

n3fit/src/evolven3fit/eko_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def construct_eko_cards(
4343
):
4444
"""
4545
Return the theory and operator cards used to construct the eko.
46-
nnpdf_theory is a NNPDF theory card for which we are computing the operator card and eko
47-
q_fin is the final point of the q grid while q_points is the number of points of the grid.
46+
nnpdf_theory is a NNPDF theory card for which we are computing the operator card.
4847
x_grid is the x grid to be used.
4948
op_card_dict and theory_card_dict are optional updates that can be provided respectively to the
5049
operator card and to the theory card.
50+
legacy40 is a flag that can be set if you want to use the old grid from NNPDF4.0
5151
"""
5252
theory, thresholds = load_theory(nnpdf_theory, theory_card_dict)
5353

n3fit/src/evolven3fit/test_q2grid.ipynb

Lines changed: 0 additions & 159 deletions
This file was deleted.

n3fit/src/n3fit/tests/test_evolven3fit.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,15 @@ def test_eko_utils(tmp_path, nnpdf_theory_card):
133133
assert (
134134
t_card_dict["order"][0] == pto + 1
135135
) # This is due to a different convention in eko orders due to QED
136-
print(op_card_dict["mugrid"])
137136
np.testing.assert_allclose(op_card_dict["xgrid"], x_grid)
138137
# We should find two entries for each threshold energy,
139138
# one for nf=3(4) and another one for nf=4(5)
140-
for n in {(1.51, 3), (1.51, 4), (4.92, 4), (4.92, 5)}:
139+
for n in {
140+
(nnpdf_theory_card["mc"], 3),
141+
(nnpdf_theory_card["mc"], 4),
142+
(nnpdf_theory_card["mb"], 4),
143+
(nnpdf_theory_card["mb"], 5),
144+
}:
141145
assert any(np.allclose(n, x) for x in op_card_dict["mugrid"])
142146

143147
# Testing if the endpoints are correct

0 commit comments

Comments
 (0)