Skip to content

Commit dd2cb06

Browse files
Introduction of template.py to contain constants and xgrid
1 parent cf67d3e commit dd2cb06

1 file changed

Lines changed: 102 additions & 0 deletions

File tree

src/pineko/template.py

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
"""Default settings and interpolation xgrid (previously in _template.yaml)."""
2+
3+
from eko.interpolation import XGrid
4+
5+
# Define the interpolation x-grid as previously defined as 'xgrid' in _template.yaml
6+
INTERPOLATION_XGRID = XGrid(
7+
[1.9999999999999954e-07,
8+
3.034304765867952e-07,
9+
4.6035014748963906e-07,
10+
6.984208530700364e-07,
11+
1.0596094959101024e-06,
12+
1.607585498470808e-06,
13+
2.438943292891682e-06,
14+
3.7002272069854957e-06,
15+
5.613757716930151e-06,
16+
8.516806677573355e-06,
17+
1.292101569074731e-05,
18+
1.9602505002391748e-05,
19+
2.97384953722449e-05,
20+
4.511438394964044e-05,
21+
6.843744918967896e-05,
22+
0.00010381172986576898,
23+
0.00015745605600841445,
24+
0.00023878782918561914,
25+
0.00036205449638139736,
26+
0.0005487795323670796,
27+
0.0008314068836488144,
28+
0.0012586797144272762,
29+
0.0019034634022867384,
30+
0.0028738675812817515,
31+
0.004328500638820811,
32+
0.006496206194633799,
33+
0.009699159574043398,
34+
0.014375068581090129,
35+
0.02108918668378717,
36+
0.030521584007828916,
37+
0.04341491741702269,
38+
0.060480028754447364,
39+
0.08228122126204893,
40+
0.10914375746330703,
41+
0.14112080644440345,
42+
0.17802566042569432,
43+
0.2195041265003886,
44+
0.2651137041582823,
45+
0.31438740076927585,
46+
0.3668753186482242,
47+
0.4221667753589648,
48+
0.4798989029610255,
49+
0.5397572337880445,
50+
0.601472197967335,
51+
0.6648139482473823,
52+
0.7295868442414312,
53+
0.7956242522922756,
54+
0.8627839323906108,
55+
0.9309440808717544,
56+
1]
57+
)
58+
59+
# Define some default parameters
60+
61+
CONSTANTS = {
62+
"configs": {
63+
"ev_op_iterations": 1,
64+
"ev_op_max_order": (10,1),
65+
"evolution_method": iterate-exact,
66+
"interpolation_is_log": true,
67+
"interpolation_polynomial_degree": 4,
68+
"inversion_method": expanded,
69+
"n_integration_cores": 1,
70+
"polarized": false,
71+
"scvar_method": null,
72+
"time_like": false
73+
},
74+
"debug": {
75+
"skip_non_singlet": false,
76+
"skip_singlet": false
77+
},
78+
"eko_version": 0.14.2,
79+
"mu0": 0,
80+
}
81+
82+
83+
84+
85+
86+
87+
88+
89+
90+
91+
92+
93+
94+
95+
96+
97+
98+
99+
100+
101+
102+

0 commit comments

Comments
 (0)