Skip to content

Commit e019ad2

Browse files
authored
Merge pull request #274 from NNPDF/fix-apfelbench
Fix apfel benchmarks
2 parents 650361f + 8f4d003 commit e019ad2

File tree

15 files changed

+346
-348
lines changed

15 files changed

+346
-348
lines changed

benchmarks/CT14_bench.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
whereas the lo family uses LO splitting functions with NLO alphas evolution
66
"""
77

8-
from math import nan
9-
108
from banana import register
119

1210
from ekomark.benchmark.runner import Runner
@@ -16,7 +14,7 @@
1614

1715
base_theory = {
1816
"Qref": 91.1876,
19-
"QrefQED": nan,
17+
"Qedref": 0.0,
2018
"mc": 1.3,
2119
"mb": 4.75,
2220
"mt": 172,

benchmarks/CT18_bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
base_theory = {
1414
"Qref": 91.1870,
15-
"QrefQED": 91.1870,
15+
"Qedref": 91.1870,
1616
"mc": 1.3,
1717
"mb": 4.75,
1818
"mt": 172.0,

benchmarks/HERA20_bench.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Benchmark HERAPDF2.0 pdf family
33
44
"""
5-
from math import nan
65

76
from banana import register
87

@@ -14,7 +13,7 @@
1413

1514
base_theory = {
1615
"Qref": 91.1876,
17-
"QrefQED": nan,
16+
"Qedref": 0.0,
1817
"mc": 1.43,
1918
"mb": 4.5,
2019
"mt": 173.0,

benchmarks/NNPDF_bench.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def benchmark_nnlo(self, Q0=1.65, mugrid=(10,)):
7272
"QED": 2,
7373
"Q0": Q0,
7474
}
75-
theory_card.update({"ModEv": "iterate-exact", "FNS": "VFNS", "QrefQED": 91.2})
75+
theory_card.update({"ModEv": "iterate-exact", "FNS": "VFNS", "Qedref": 91.2})
7676

7777
self.skip_pdfs = lambda _theory: [
7878
-6,

benchmarks/apfel_bench.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class BenchmarkFFNS_qed(ApfelBenchmark):
202202

203203
ffns_theory = {
204204
"Qref": 91.1870,
205-
"QrefQED": 91.1870,
205+
"Qedref": 91.1870,
206206
"mc": 1.3,
207207
"mb": 4.75,
208208
"mt": 172.0,
@@ -281,7 +281,7 @@ class BenchmarkVFNS_qed(ApfelBenchmark):
281281

282282
vfns_theory = {
283283
"Qref": 91.1870,
284-
"QrefQED": 91.1870,
284+
"Qedref": 91.1870,
285285
"mc": 1.3,
286286
"mb": 4.75,
287287
"mt": 172.0,

benchmarks/lha_paper_bench.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Benchmark to :cite:`Giele:2002hx` (LO + NLO) and :cite:`Dittmar:2005ed` (NNLO).
33
"""
44
import os
5-
from math import nan
65

76
import numpy as np
87
import pytest
@@ -29,7 +28,7 @@
2928
"alphas": 0.35, # Eq. (4.55) :cite:`Dittmar:2005ed`
3029
"alphaqed": 0.007496,
3130
"QED": 0,
32-
"QrefQED": nan,
31+
"Qedref": 0.0,
3332
}
3433
"""Global theory settings"""
3534

benchmarks/pegasus_bench.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Benchmark to Pegasus :cite:`Vogt:2004ns`
33
"""
4-
from math import nan
54

65
import numpy as np
76
from banana import register
@@ -56,7 +55,7 @@ class BenchmarkVFNS(PegasusBenchmark):
5655
"kbThr": 1.0,
5756
"ktThr": 1.0,
5857
"Qref": np.sqrt(2.0),
59-
"QrefQED": nan,
58+
"Qedref": 0.0,
6059
"alphas": 0.35,
6160
"alphaqed": 0.007496,
6261
"QED": 0,
@@ -110,7 +109,7 @@ class BenchmarkFFNS(PegasusBenchmark):
110109
"kbThr": np.inf,
111110
"ktThr": np.inf,
112111
"Qref": np.sqrt(2.0),
113-
"QrefQED": nan,
112+
"Qedref": 0.0,
114113
"alphas": 0.35,
115114
"alphaqed": 0.007496,
116115
"Q0": np.sqrt(2.0),

benchmarks/sandbox.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# pylint: skip-file
2-
from math import nan
32

43
import numpy as np
54
from banana import register
@@ -27,7 +26,7 @@
2726
}
2827
nnpdf_base_theory = {
2928
"Qref": 91.2,
30-
"QrefQED": nan,
29+
"Qedref": 0.0,
3130
"mc": 1.51,
3231
"mb": 4.92,
3332
"mt": 172.5,

doc/source/code/IO.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ and environment. The benchmark settings are available at :mod:`banana.data.theor
6969
* - ``alphaqed``
7070
- :py:obj:`float`
7171
- Reference value of the electromagnetic coupling :math:`\alpha_{em}`.
72-
* - ``QrefQED``
72+
* - ``Qedref``
7373
- :py:obj:`float`
7474
- Reference scale at which the ``alphaqed`` value is given (in GeV).
7575
* - ``HQ``

poetry.lock

Lines changed: 313 additions & 323 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)