nnpdf-data 4.1.1__py3-none-any.whl → 4.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. nnpdf_data/__init__.py +13 -4
  2. nnpdf_data/_version.py +1 -1
  3. nnpdf_data/commondata/ATLAS_TTBAR_13TEV_2L_TOT/data.yaml +2 -0
  4. nnpdf_data/commondata/ATLAS_TTBAR_13TEV_2L_TOT/kinematics.yaml +9 -0
  5. nnpdf_data/commondata/ATLAS_TTBAR_13TEV_2L_TOT/metadata.yaml +46 -0
  6. nnpdf_data/commondata/ATLAS_TTBAR_13TEV_2L_TOT/uncertainties.yaml +22 -0
  7. nnpdf_data/commondata/ATLAS_TTBAR_13TEV_TOT/metadata.yaml +1 -1
  8. nnpdf_data/commondata/ATLAS_Z0J_8TEV/metadata.yaml +13 -1
  9. nnpdf_data/commondata/ATLAS_Z0J_8TEV/uncertainties_decorr_PT-M.yaml +274 -0
  10. nnpdf_data/commondata/ATLAS_Z0J_8TEV/uncertainties_decorr_PT-Y.yaml +498 -0
  11. nnpdf_data/commondata/ATLAS_Z0J_8TEV/uncertainties_decorr_sys_10_PT-M.yaml +342 -0
  12. nnpdf_data/commondata/ATLAS_Z0J_8TEV/uncertainties_decorr_sys_10_PT-Y.yaml +622 -0
  13. nnpdf_data/commondata/CMS_TTBAR_13TEV_35P9FB-1_TAU_TOT/data.yaml +2 -0
  14. nnpdf_data/commondata/CMS_TTBAR_13TEV_35P9FB-1_TAU_TOT/kinematics.yaml +9 -0
  15. nnpdf_data/commondata/CMS_TTBAR_13TEV_35P9FB-1_TAU_TOT/metadata.yaml +46 -0
  16. nnpdf_data/commondata/CMS_TTBAR_13TEV_35P9FB-1_TAU_TOT/uncertainties.yaml +17 -0
  17. nnpdf_data/commondata/NNPDF_POS_100GEV/kinematics_XCB.yaml +161 -0
  18. nnpdf_data/commondata/NNPDF_POS_100GEV/kinematics_XCQ.yaml +161 -0
  19. nnpdf_data/commondata/NNPDF_POS_100GEV/kinematics_XDB.yaml +161 -0
  20. nnpdf_data/commondata/NNPDF_POS_100GEV/kinematics_XDQ.yaml +161 -0
  21. nnpdf_data/commondata/NNPDF_POS_100GEV/kinematics_XGL.yaml +201 -0
  22. nnpdf_data/commondata/NNPDF_POS_100GEV/kinematics_XSB.yaml +161 -0
  23. nnpdf_data/commondata/NNPDF_POS_100GEV/kinematics_XSQ.yaml +161 -0
  24. nnpdf_data/commondata/NNPDF_POS_100GEV/kinematics_XUB.yaml +161 -0
  25. nnpdf_data/commondata/NNPDF_POS_100GEV/kinematics_XUQ.yaml +161 -0
  26. nnpdf_data/commondata/NNPDF_POS_100GEV/metadata.yaml +302 -0
  27. nnpdf_data/commondataparser.py +11 -4
  28. nnpdf_data/theory.py +2 -2
  29. nnpdf_data/theory_cards/40005027.yaml +50 -0
  30. nnpdf_data/theory_cards/40005028.yaml +50 -0
  31. nnpdf_data/theory_cards/40005029.yaml +50 -0
  32. nnpdf_data/theory_cards/40005030.yaml +50 -0
  33. nnpdf_data/theory_cards/40005031.yaml +50 -0
  34. nnpdf_data/theory_cards/40005032.yaml +50 -0
  35. nnpdf_data/theory_cards/40005033.yaml +50 -0
  36. nnpdf_data/theory_cards/40005034.yaml +50 -0
  37. nnpdf_data/theory_cards/40005035.yaml +50 -0
  38. nnpdf_data/theory_cards/40005036.yaml +50 -0
  39. nnpdf_data/theory_cards/40005037.yaml +50 -0
  40. nnpdf_data/theory_cards/40005038.yaml +50 -0
  41. nnpdf_data/theory_cards/40005039.yaml +50 -0
  42. nnpdf_data/theory_cards/40005040.yaml +50 -0
  43. nnpdf_data/theory_cards/40005041.yaml +50 -0
  44. nnpdf_data/theory_cards/40005042.yaml +50 -0
  45. nnpdf_data/theory_cards/40005043.yaml +50 -0
  46. nnpdf_data/theory_cards/40005044.yaml +50 -0
  47. nnpdf_data/theory_cards/40005045.yaml +50 -0
  48. nnpdf_data/theory_cards/40005046.yaml +50 -0
  49. nnpdf_data/theory_cards/40005047.yaml +50 -0
  50. nnpdf_data/theory_cards/40005048.yaml +50 -0
  51. nnpdf_data/theory_cards/40005049.yaml +50 -0
  52. nnpdf_data/theory_cards/40005050.yaml +50 -0
  53. nnpdf_data/theory_cards/40005051.yaml +50 -0
  54. nnpdf_data/theory_cards/40005052.yaml +50 -0
  55. nnpdf_data/theory_cards/40005053.yaml +50 -0
  56. nnpdf_data/theory_cards/41041000.yaml +42 -0
  57. nnpdf_data/theory_cards/41041001.yaml +42 -0
  58. nnpdf_data/theory_cards/41041002.yaml +42 -0
  59. nnpdf_data/utils.py +103 -0
  60. nnpdf_data/validphys_compatibility.py +1 -3
  61. {nnpdf_data-4.1.1.dist-info → nnpdf_data-4.1.2.dist-info}/METADATA +1 -1
  62. {nnpdf_data-4.1.1.dist-info → nnpdf_data-4.1.2.dist-info}/RECORD +63 -11
  63. {nnpdf_data-4.1.1.dist-info → nnpdf_data-4.1.2.dist-info}/WHEEL +0 -0
@@ -0,0 +1,50 @@
1
+ ID: 40_005_045
2
+ Comments: NNPDF4.0 N3LO alphas=0.118 and FHMRUVV splittings as Oct '24 and PCH, XIR 2.0 but DIS from 40_005_000
3
+ CKM:
4
+ - 0.97428
5
+ - 0.2253
6
+ - 0.00347
7
+ - 0.2252
8
+ - 0.97345
9
+ - 0.041
10
+ - 0.00862
11
+ - 0.0403
12
+ - 0.999152
13
+ DAMP: 1
14
+ DAMPPOWERc: 2
15
+ DAMPPOWERb: 2
16
+ FNS: FONLL-E
17
+ GF: 1.1663787e-05
18
+ HQ: POLE
19
+ IC: 0
20
+ MP: 0.938
21
+ MW: 80.398
22
+ MZ: 91.1876
23
+ MaxNfPdf: 5
24
+ ModEv: TRN
25
+ ModSV: null
26
+ NfFF: 4
27
+ PTO: 3
28
+ Q0: 1.0
29
+ QED: 0
30
+ Qmb: 4.92
31
+ Qmc: 1.51
32
+ Qmt: 172.5
33
+ Qref: 91.2
34
+ SIN2TW: 0.23126
35
+ TMC: 1
36
+ XIF: 1.0
37
+ XIR: 2.0
38
+ alphaqed: 0.007496252
39
+ alphas: 0.118
40
+ kbThr: 1.0
41
+ kcThr: 1.0
42
+ ktThr: 1.0
43
+ mb: 4.92
44
+ mc: 1.51
45
+ mt: 172.5
46
+ nfref: 5
47
+ nf0: 3
48
+ n3lo_ad_variation: [0,0,0,0,0,0,0]
49
+ n3lo_cf_variation: 0
50
+ use_fhmruvv: true
@@ -0,0 +1,50 @@
1
+ ID: 40_005_046
2
+ Comments: NNPDF4.0 N3LO alphas=0.118 and FHMRUVV splittings as Oct '24 and PCH, XIF=0.5, XIR=1.0
3
+ CKM:
4
+ - 0.97428
5
+ - 0.2253
6
+ - 0.00347
7
+ - 0.2252
8
+ - 0.97345
9
+ - 0.041
10
+ - 0.00862
11
+ - 0.0403
12
+ - 0.999152
13
+ DAMP: 1
14
+ DAMPPOWERc: 2
15
+ DAMPPOWERb: 2
16
+ FNS: FONLL-E
17
+ GF: 1.1663787e-05
18
+ HQ: POLE
19
+ IC: 0
20
+ MP: 0.938
21
+ MW: 80.398
22
+ MZ: 91.1876
23
+ MaxNfPdf: 5
24
+ ModEv: TRN
25
+ ModSV: expanded
26
+ NfFF: 4
27
+ PTO: 3
28
+ Q0: 1.0
29
+ QED: 0
30
+ Qmb: 4.92
31
+ Qmc: 1.51
32
+ Qmt: 172.5
33
+ Qref: 91.2
34
+ SIN2TW: 0.23126
35
+ TMC: 1
36
+ XIR: 1.0
37
+ XIF: 0.5
38
+ alphaqed: 0.007496252
39
+ alphas: 0.118
40
+ kbThr: 1.0
41
+ kcThr: 1.0
42
+ ktThr: 1.0
43
+ mb: 4.92
44
+ mc: 1.51
45
+ mt: 172.5
46
+ nfref: 5
47
+ nf0: 3
48
+ n3lo_ad_variation: [0,0,0,0,0,0,0]
49
+ n3lo_cf_variation: 0
50
+ use_fhmruvv: true
@@ -0,0 +1,50 @@
1
+ ID: 40_005_047
2
+ Comments: NNPDF4.0 N3LO alphas=0.118 and FHMRUVV splittings as Oct '24 and PCH, XIF=2.0, XIR=1.0
3
+ CKM:
4
+ - 0.97428
5
+ - 0.2253
6
+ - 0.00347
7
+ - 0.2252
8
+ - 0.97345
9
+ - 0.041
10
+ - 0.00862
11
+ - 0.0403
12
+ - 0.999152
13
+ DAMP: 1
14
+ DAMPPOWERc: 2
15
+ DAMPPOWERb: 2
16
+ FNS: FONLL-E
17
+ GF: 1.1663787e-05
18
+ HQ: POLE
19
+ IC: 0
20
+ MP: 0.938
21
+ MW: 80.398
22
+ MZ: 91.1876
23
+ MaxNfPdf: 5
24
+ ModEv: TRN
25
+ ModSV: expanded
26
+ NfFF: 4
27
+ PTO: 3
28
+ Q0: 1.0
29
+ QED: 0
30
+ Qmb: 4.92
31
+ Qmc: 1.51
32
+ Qmt: 172.5
33
+ Qref: 91.2
34
+ SIN2TW: 0.23126
35
+ TMC: 1
36
+ XIR: 1.0
37
+ XIF: 2.0
38
+ alphaqed: 0.007496252
39
+ alphas: 0.118
40
+ kbThr: 1.0
41
+ kcThr: 1.0
42
+ ktThr: 1.0
43
+ mb: 4.92
44
+ mc: 1.51
45
+ mt: 172.5
46
+ nfref: 5
47
+ nf0: 3
48
+ n3lo_ad_variation: [0,0,0,0,0,0,0]
49
+ n3lo_cf_variation: 0
50
+ use_fhmruvv: true
@@ -0,0 +1,50 @@
1
+ ID: 40_005_048
2
+ Comments: NNPDF4.0 N3LO alphas=0.118 and FHMRUVV splittings as Oct '24 and PCH, XIF=0.5, XIR=0.5
3
+ CKM:
4
+ - 0.97428
5
+ - 0.2253
6
+ - 0.00347
7
+ - 0.2252
8
+ - 0.97345
9
+ - 0.041
10
+ - 0.00862
11
+ - 0.0403
12
+ - 0.999152
13
+ DAMP: 1
14
+ DAMPPOWERc: 2
15
+ DAMPPOWERb: 2
16
+ FNS: FONLL-E
17
+ GF: 1.1663787e-05
18
+ HQ: POLE
19
+ IC: 0
20
+ MP: 0.938
21
+ MW: 80.398
22
+ MZ: 91.1876
23
+ MaxNfPdf: 5
24
+ ModEv: TRN
25
+ ModSV: expanded
26
+ NfFF: 4
27
+ PTO: 3
28
+ Q0: 1.0
29
+ QED: 0
30
+ Qmb: 4.92
31
+ Qmc: 1.51
32
+ Qmt: 172.5
33
+ Qref: 91.2
34
+ SIN2TW: 0.23126
35
+ TMC: 1
36
+ XIR: 0.5
37
+ XIF: 0.5
38
+ alphaqed: 0.007496252
39
+ alphas: 0.118
40
+ kbThr: 1.0
41
+ kcThr: 1.0
42
+ ktThr: 1.0
43
+ mb: 4.92
44
+ mc: 1.51
45
+ mt: 172.5
46
+ nfref: 5
47
+ nf0: 3
48
+ n3lo_ad_variation: [0,0,0,0,0,0,0]
49
+ n3lo_cf_variation: 0
50
+ use_fhmruvv: true
@@ -0,0 +1,50 @@
1
+ ID: 40_005_049
2
+ Comments: NNPDF4.0 N3LO alphas=0.118 and FHMRUVV splittings as Oct '24 and PCH, XIF=1.0, XIR=0.5
3
+ CKM:
4
+ - 0.97428
5
+ - 0.2253
6
+ - 0.00347
7
+ - 0.2252
8
+ - 0.97345
9
+ - 0.041
10
+ - 0.00862
11
+ - 0.0403
12
+ - 0.999152
13
+ DAMP: 1
14
+ DAMPPOWERc: 2
15
+ DAMPPOWERb: 2
16
+ FNS: FONLL-E
17
+ GF: 1.1663787e-05
18
+ HQ: POLE
19
+ IC: 0
20
+ MP: 0.938
21
+ MW: 80.398
22
+ MZ: 91.1876
23
+ MaxNfPdf: 5
24
+ ModEv: TRN
25
+ ModSV: null
26
+ NfFF: 4
27
+ PTO: 3
28
+ Q0: 1.0
29
+ QED: 0
30
+ Qmb: 4.92
31
+ Qmc: 1.51
32
+ Qmt: 172.5
33
+ Qref: 91.2
34
+ SIN2TW: 0.23126
35
+ TMC: 1
36
+ XIR: 0.5
37
+ XIF: 1.0
38
+ alphaqed: 0.007496252
39
+ alphas: 0.118
40
+ kbThr: 1.0
41
+ kcThr: 1.0
42
+ ktThr: 1.0
43
+ mb: 4.92
44
+ mc: 1.51
45
+ mt: 172.5
46
+ nfref: 5
47
+ nf0: 3
48
+ n3lo_ad_variation: [0,0,0,0,0,0,0]
49
+ n3lo_cf_variation: 0
50
+ use_fhmruvv: true
@@ -0,0 +1,50 @@
1
+ ID: 40_005_050
2
+ Comments: NNPDF4.0 N3LO alphas=0.118 and FHMRUVV splittings as Oct '24 and PCH, XIF=2.0, XIR=0.5
3
+ CKM:
4
+ - 0.97428
5
+ - 0.2253
6
+ - 0.00347
7
+ - 0.2252
8
+ - 0.97345
9
+ - 0.041
10
+ - 0.00862
11
+ - 0.0403
12
+ - 0.999152
13
+ DAMP: 1
14
+ DAMPPOWERc: 2
15
+ DAMPPOWERb: 2
16
+ FNS: FONLL-E
17
+ GF: 1.1663787e-05
18
+ HQ: POLE
19
+ IC: 0
20
+ MP: 0.938
21
+ MW: 80.398
22
+ MZ: 91.1876
23
+ MaxNfPdf: 5
24
+ ModEv: TRN
25
+ ModSV: expanded
26
+ NfFF: 4
27
+ PTO: 3
28
+ Q0: 1.0
29
+ QED: 0
30
+ Qmb: 4.92
31
+ Qmc: 1.51
32
+ Qmt: 172.5
33
+ Qref: 91.2
34
+ SIN2TW: 0.23126
35
+ TMC: 1
36
+ XIR: 0.5
37
+ XIF: 2.0
38
+ alphaqed: 0.007496252
39
+ alphas: 0.118
40
+ kbThr: 1.0
41
+ kcThr: 1.0
42
+ ktThr: 1.0
43
+ mb: 4.92
44
+ mc: 1.51
45
+ mt: 172.5
46
+ nfref: 5
47
+ nf0: 3
48
+ n3lo_ad_variation: [0,0,0,0,0,0,0]
49
+ n3lo_cf_variation: 0
50
+ use_fhmruvv: true
@@ -0,0 +1,50 @@
1
+ ID: 40_005_051
2
+ Comments: NNPDF4.0 N3LO alphas=0.118 and FHMRUVV splittings as Oct '24 and PCH, XIF=0.5, XIR=2.0
3
+ CKM:
4
+ - 0.97428
5
+ - 0.2253
6
+ - 0.00347
7
+ - 0.2252
8
+ - 0.97345
9
+ - 0.041
10
+ - 0.00862
11
+ - 0.0403
12
+ - 0.999152
13
+ DAMP: 1
14
+ DAMPPOWERc: 2
15
+ DAMPPOWERb: 2
16
+ FNS: FONLL-E
17
+ GF: 1.1663787e-05
18
+ HQ: POLE
19
+ IC: 0
20
+ MP: 0.938
21
+ MW: 80.398
22
+ MZ: 91.1876
23
+ MaxNfPdf: 5
24
+ ModEv: TRN
25
+ ModSV: expanded
26
+ NfFF: 4
27
+ PTO: 3
28
+ Q0: 1.0
29
+ QED: 0
30
+ Qmb: 4.92
31
+ Qmc: 1.51
32
+ Qmt: 172.5
33
+ Qref: 91.2
34
+ SIN2TW: 0.23126
35
+ TMC: 1
36
+ XIR: 2.0
37
+ XIF: 0.5
38
+ alphaqed: 0.007496252
39
+ alphas: 0.118
40
+ kbThr: 1.0
41
+ kcThr: 1.0
42
+ ktThr: 1.0
43
+ mb: 4.92
44
+ mc: 1.51
45
+ mt: 172.5
46
+ nfref: 5
47
+ nf0: 3
48
+ n3lo_ad_variation: [0,0,0,0,0,0,0]
49
+ n3lo_cf_variation: 0
50
+ use_fhmruvv: true
@@ -0,0 +1,50 @@
1
+ ID: 40_005_052
2
+ Comments: NNPDF4.0 N3LO alphas=0.118 and FHMRUVV splittings as Oct '24 and PCH, XIF=1.0, XIR=2.0
3
+ CKM:
4
+ - 0.97428
5
+ - 0.2253
6
+ - 0.00347
7
+ - 0.2252
8
+ - 0.97345
9
+ - 0.041
10
+ - 0.00862
11
+ - 0.0403
12
+ - 0.999152
13
+ DAMP: 1
14
+ DAMPPOWERc: 2
15
+ DAMPPOWERb: 2
16
+ FNS: FONLL-E
17
+ GF: 1.1663787e-05
18
+ HQ: POLE
19
+ IC: 0
20
+ MP: 0.938
21
+ MW: 80.398
22
+ MZ: 91.1876
23
+ MaxNfPdf: 5
24
+ ModEv: TRN
25
+ ModSV: null
26
+ NfFF: 4
27
+ PTO: 3
28
+ Q0: 1.0
29
+ QED: 0
30
+ Qmb: 4.92
31
+ Qmc: 1.51
32
+ Qmt: 172.5
33
+ Qref: 91.2
34
+ SIN2TW: 0.23126
35
+ TMC: 1
36
+ XIR: 2.0
37
+ XIF: 1.0
38
+ alphaqed: 0.007496252
39
+ alphas: 0.118
40
+ kbThr: 1.0
41
+ kcThr: 1.0
42
+ ktThr: 1.0
43
+ mb: 4.92
44
+ mc: 1.51
45
+ mt: 172.5
46
+ nfref: 5
47
+ nf0: 3
48
+ n3lo_ad_variation: [0,0,0,0,0,0,0]
49
+ n3lo_cf_variation: 0
50
+ use_fhmruvv: true
@@ -0,0 +1,50 @@
1
+ ID: 40_005_053
2
+ Comments: NNPDF4.0 N3LO alphas=0.118 and FHMRUVV splittings as Oct '24 and PCH, XIF=2.0, XIR=2.0
3
+ CKM:
4
+ - 0.97428
5
+ - 0.2253
6
+ - 0.00347
7
+ - 0.2252
8
+ - 0.97345
9
+ - 0.041
10
+ - 0.00862
11
+ - 0.0403
12
+ - 0.999152
13
+ DAMP: 1
14
+ DAMPPOWERc: 2
15
+ DAMPPOWERb: 2
16
+ FNS: FONLL-E
17
+ GF: 1.1663787e-05
18
+ HQ: POLE
19
+ IC: 0
20
+ MP: 0.938
21
+ MW: 80.398
22
+ MZ: 91.1876
23
+ MaxNfPdf: 5
24
+ ModEv: TRN
25
+ ModSV: expanded
26
+ NfFF: 4
27
+ PTO: 3
28
+ Q0: 1.0
29
+ QED: 0
30
+ Qmb: 4.92
31
+ Qmc: 1.51
32
+ Qmt: 172.5
33
+ Qref: 91.2
34
+ SIN2TW: 0.23126
35
+ TMC: 1
36
+ XIR: 2.0
37
+ XIF: 2.0
38
+ alphaqed: 0.007496252
39
+ alphas: 0.118
40
+ kbThr: 1.0
41
+ kcThr: 1.0
42
+ ktThr: 1.0
43
+ mb: 4.92
44
+ mc: 1.51
45
+ mt: 172.5
46
+ nfref: 5
47
+ nf0: 3
48
+ n3lo_ad_variation: [0,0,0,0,0,0,0]
49
+ n3lo_cf_variation: 0
50
+ use_fhmruvv: true
@@ -0,0 +1,42 @@
1
+ ID: 41_041_000
2
+ Comments: NNPDF4.1 N3LO QCD QED
3
+ PTO: 3
4
+ FNS: FONLL-E
5
+ DAMP: 0
6
+ IC: 1
7
+ Q0: 1.65
8
+ ModEv: EXA
9
+ IterEv: 60
10
+ XIR: 1.0
11
+ XIF: 1.0
12
+ NfFF: 5
13
+ QED: 2
14
+ HQ: POLE
15
+ mc: 1.502
16
+ Qmc: 1.502
17
+ kcThr: 1.0
18
+ mb: 4.936
19
+ Qmb: 4.936
20
+ kbThr: 1.0
21
+ mt: 172.5
22
+ Qmt: 172.5
23
+ ktThr: 1.0
24
+ CKM:
25
+ - 0.97367
26
+ - 0.22431
27
+ - 3.82e-3
28
+ - 0.221
29
+ - 0.975
30
+ - 41.1e-3
31
+ - 8.6e-3
32
+ - 41.5e-3
33
+ - 1.010
34
+ MZ: 91.1880
35
+ MW: 80.3692
36
+ GF: 1.1663788e-5
37
+ SIN2TW: 0.22348
38
+ TMC: 1
39
+ MP: 0.938
40
+ Qref: 91.1880
41
+ alphas: 0.118
42
+ alphaqed: 0.0075700
@@ -0,0 +1,42 @@
1
+ ID: 41_041_001
2
+ Comments: NNPDF4.1 NNLO QCD, NLO QED
3
+ PTO: 2
4
+ FNS: FONLL-C
5
+ DAMP: 0
6
+ IC: 1
7
+ Q0: 1.65
8
+ ModEv: EXA
9
+ IterEv: 60
10
+ XIR: 1.0
11
+ XIF: 1.0
12
+ NfFF: 5
13
+ QED: 2
14
+ HQ: POLE
15
+ mc: 1.502
16
+ Qmc: 1.502
17
+ kcThr: 1.0
18
+ mb: 4.936
19
+ Qmb: 4.936
20
+ kbThr: 1.0
21
+ mt: 172.5
22
+ Qmt: 172.5
23
+ ktThr: 1.0
24
+ CKM:
25
+ - 0.97367
26
+ - 0.22431
27
+ - 3.82e-3
28
+ - 0.221
29
+ - 0.975
30
+ - 41.1e-3
31
+ - 8.6e-3
32
+ - 41.5e-3
33
+ - 1.010
34
+ MZ: 91.1880
35
+ MW: 80.3692
36
+ GF: 1.1663788e-5
37
+ SIN2TW: 0.22348
38
+ TMC: 1
39
+ MP: 0.938
40
+ Qref: 91.1880
41
+ alphas: 0.118
42
+ alphaqed: 0.0075700
@@ -0,0 +1,42 @@
1
+ ID: 41_041_002
2
+ Comments: NNPDF4.1 NLO QCD, NLO QED
3
+ PTO: 1
4
+ FNS: FONLL-B
5
+ DAMP: 0
6
+ IC: 1
7
+ Q0: 1.65
8
+ ModEv: EXA
9
+ IterEv: 60
10
+ XIR: 1.0
11
+ XIF: 1.0
12
+ NfFF: 5
13
+ QED: 2
14
+ HQ: POLE
15
+ mc: 1.502
16
+ Qmc: 1.502
17
+ kcThr: 1.0
18
+ mb: 4.936
19
+ Qmb: 4.936
20
+ kbThr: 1.0
21
+ mt: 172.5
22
+ Qmt: 172.5
23
+ ktThr: 1.0
24
+ CKM:
25
+ - 0.97367
26
+ - 0.22431
27
+ - 3.82e-3
28
+ - 0.221
29
+ - 0.975
30
+ - 41.1e-3
31
+ - 8.6e-3
32
+ - 41.5e-3
33
+ - 1.010
34
+ MZ: 91.1880
35
+ MW: 80.3692
36
+ GF: 1.1663788e-5
37
+ SIN2TW: 0.22348
38
+ TMC: 1
39
+ MP: 0.938
40
+ Qref: 91.1880
41
+ alphas: 0.118
42
+ alphaqed: 0.0075700
nnpdf_data/utils.py CHANGED
@@ -1,4 +1,8 @@
1
+ from functools import cache
2
+ import os
1
3
  import pathlib
4
+ import pkgutil
5
+ import sys
2
6
 
3
7
  from ruamel.yaml import YAML
4
8
  from validobj import ValidationError, parse_input
@@ -6,6 +10,105 @@ from validobj import ValidationError, parse_input
6
10
  yaml_fast = YAML(typ='safe', pure=False)
7
11
  yaml_safe = YAML(typ='safe')
8
12
 
13
+ # Default path to where the commondata will be found
14
+ DEFAULT_PATH_VPDATA = pathlib.Path(__file__).parent / "commondata"
15
+ NNPDF_DIR = "NNPDF"
16
+
17
+
18
+ @cache
19
+ def get_nnpdf_profile(profile_path=None):
20
+ """Returns the NNPDF profile as a dictionary
21
+
22
+ If no ``profile_path`` is provided it will be autodiscovered in the following order:
23
+
24
+ 1. Environment variable $NNPDF_PROFILE_PATH
25
+ 2. ${XDG_CONFIG_HOME}/NNPDF/nnprofile.yaml (usually ~/.config/nnprofile)
26
+
27
+ Any value not filled by 1 or 2 will then be filled by the default values
28
+ found within the validphys python package `nnporfile_default.yaml`
29
+
30
+ If ``nnpdf_share`` is set to the special key ``RELATIVE_TO_PYTHON``
31
+ the python prefix (``Path(sys.prefix)/"share"/"NNPDF"``) will be used.
32
+
33
+ The ``data_path`` key is special in that it will _always_ be filled with
34
+ the location of the nnpdf_data package (albeit with lower priority if there is an entry).
35
+ """
36
+
37
+ home_config = pathlib.Path().home() / ".config"
38
+ config_folder = pathlib.Path(os.environ.get("XDG_CONFIG_HOME", home_config)) / NNPDF_DIR
39
+
40
+ # Set all default values
41
+ profile_content = pkgutil.get_data("validphys", "nnprofile_default.yaml")
42
+ profile_dict = yaml_safe.load(profile_content)
43
+
44
+ # Look at profile path
45
+ if profile_path is None:
46
+ profile_path = os.environ.get("NNPDF_PROFILE_PATH")
47
+
48
+ # If profile_path is still none and there is a .config/NNPDF/nnprofile.yaml, read that
49
+ if profile_path is None:
50
+ if (config_nnprofile := config_folder / "nnprofile.yaml").exists():
51
+ profile_path = config_nnprofile
52
+ elif (config_nnprofile := config_folder / "nnprofile.yml").exists():
53
+ profile_path = config_nnprofile
54
+
55
+ if profile_path is not None:
56
+ with open(profile_path, encoding="utf-8") as f:
57
+ profile_entries = yaml_safe.load(f)
58
+ if profile_entries is not None:
59
+ profile_dict.update(profile_entries)
60
+
61
+ # For the path to the data, loop over the paths we have and check whether they do exist.
62
+ # If any of the paths do not exist, ignore it.
63
+ valid_paths = []
64
+ for dpath_str in profile_dict.get("data_path", []):
65
+ if (dpath := pathlib.Path(dpath_str)).exists():
66
+ valid_paths.append(dpath)
67
+ # And add the default path at the end (i.e., with lower priority)
68
+ valid_paths.append(DEFAULT_PATH_VPDATA)
69
+ profile_dict["data_path"] = valid_paths
70
+
71
+ nnpdf_share = profile_dict.get("nnpdf_share")
72
+ if nnpdf_share is None:
73
+ if profile_path is not None:
74
+ raise ValueError(
75
+ f"`nnpdf_share` is not set in {profile_path}, please set it, e.g.: nnpdf_share: `.local/share/NNPDF`"
76
+ )
77
+ raise ValueError(
78
+ "`nnpdf_share` not found in validphys, something is very wrong with the installation"
79
+ )
80
+
81
+ if nnpdf_share == "RELATIVE_TO_PYTHON":
82
+ nnpdf_share = pathlib.Path(sys.prefix) / "share" / NNPDF_DIR
83
+
84
+ # At this point nnpdf_share needs to be a path to somewhere
85
+ nnpdf_share = pathlib.Path(nnpdf_share)
86
+
87
+ # Make sure that we expand any ~ or ~<username>
88
+ nnpdf_share = nnpdf_share.expanduser()
89
+
90
+ # Make sure we can either write to this directory or it exists
91
+ try:
92
+ nnpdf_share.mkdir(exist_ok=True, parents=True)
93
+ except PermissionError as e:
94
+ raise FileNotFoundError(
95
+ f"{nnpdf_share} does not exist and you haven't got permissions to create it!"
96
+ ) from e
97
+
98
+ # Now read all paths and define them as relative to nnpdf_share (unless given as absolute)
99
+ for var in [
100
+ "results_path",
101
+ "theories_path",
102
+ "validphys_cache_path",
103
+ "hyperscan_path",
104
+ "ekos_path",
105
+ ]:
106
+ # if there are any problems setting or getting these variable erroring out is more than justified
107
+ absolute_var = nnpdf_share / pathlib.Path(profile_dict[var]).expanduser()
108
+ profile_dict[var] = absolute_var.absolute().as_posix()
109
+
110
+ return profile_dict
111
+
9
112
 
10
113
  def quick_yaml_load(filepath):
11
114
  """If libyaml is available, use the C loader to speed up some of the read
@@ -50,9 +50,7 @@ class PlottingOptions:
50
50
  # and no external code or new feature should depend on them as they might be removed at any point
51
51
  # with no previous warning
52
52
 
53
- path_vpdata = pathlib.Path(__file__).parent
54
- path_commondata = path_vpdata / "commondata"
55
- _path_legacy_mapping = path_commondata / "dataset_names.yml"
53
+ _path_legacy_mapping = pathlib.Path(__file__).parent / "commondata" / "dataset_names.yml"
56
54
  _legacy_to_new_mapping_raw = yaml.YAML().load(_path_legacy_mapping)
57
55
  # Convert strings into a dictionary
58
56
  legacy_to_new_mapping = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nnpdf_data
3
- Version: 4.1.1
3
+ Version: 4.1.2
4
4
  Summary: The NNPDF data repository
5
5
  License: GPL-3.0-or-later
6
6
  Author: NNPDF Collaboration