Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
557a5fb
Branch debug stuff
felixhekhorn Jul 11, 2022
3e2f8e9
Merge branch 'main' into feature/bugfix-sv
felixhekhorn Sep 8, 2022
9a116bd
Reconcile pre-commit
felixhekhorn Sep 8, 2022
91258c6
Add yet more debug stuff
felixhekhorn Sep 21, 2022
23da929
Merge branch 'main' into feature/bugfix-sv
felixhekhorn Sep 22, 2022
61339cf
Add more debug
felixhekhorn Sep 22, 2022
0def85a
Happy debugging
felixhekhorn Sep 22, 2022
deaf045
Consider all quarks in debug
felixhekhorn Sep 23, 2022
7e7abac
Predict B-C
felixhekhorn Oct 5, 2022
df5c4b6
Start NNLO debug
felixhekhorn Oct 6, 2022
a9be1de
Merge branch 'main' into bigfix-sv
andreab1997 Oct 29, 2022
74dcaea
Add things to be compatible with eko
andreab1997 Nov 2, 2022
972315f
Fix interpolator
andreab1997 Nov 2, 2022
9815399
Completed compatibility with new eko
andreab1997 Nov 2, 2022
037ed1c
Improve debug3
andreab1997 Nov 4, 2022
4c81c88
Complete test on schemes
andreab1997 Nov 7, 2022
9f6a1b0
Fix iterate call in opcards
andreab1997 Nov 2, 2022
8a030a6
Fix dump of eko
andreab1997 Nov 2, 2022
1517744
Fix eko dump again
andreab1997 Nov 2, 2022
9d5c260
Remove inputpids and outputpids from op card
andreab1997 Nov 2, 2022
f01e7d7
Revert "Remove inputpids and outputpids from op card"
andreab1997 Nov 2, 2022
8a74ca8
Revert "Fix eko dump again"
andreab1997 Nov 2, 2022
8367f99
Revert "Fix dump of eko"
andreab1997 Nov 2, 2022
2820a2a
Allow nnlo checks
andreab1997 Nov 10, 2022
36f147d
Add some comments
andreab1997 Nov 10, 2022
a55b2d7
Allow nnlo pdfs and different possible scheme B
andreab1997 Nov 11, 2022
99f6c78
Black
andreab1997 Nov 11, 2022
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
18 changes: 18 additions & 0 deletions debug.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
import eko
import lhapdf
import numpy as np
from ekobox import apply

gonly = lhapdf.mkPDF("gonly", 0)

ho = eko.output.Output.load_tar("data/ekos/3201/test.tar")
hpdf = apply.apply_pdf(ho, gonly)

bo = eko.output.Output.load_tar("data/ekos/2201/test.tar")
bpdf = apply.apply_pdf(bo, gonly)

# a is the output of the sv script
plot(np.log(a[:, 2]), a[:, 4])
plot(np.log(a[:, 2]), a[:, 6])
plot(np.log(a[:, 2]), 4 * 5 / 9 * a[:, 2] * bpdf[300.0]["pdfs"][2])
73 changes: 73 additions & 0 deletions debug2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# -*- coding: utf-8 -*-
import numpy as np
import yadism
import yaml
from eko.anomalous_dimensions import as1
from eko.harmonics import S1
from eko.interpolation import InterpolatorDispatcher

# from scipy.integrate import quad
# from scipy.interpolate import interp1d
# def mel(y, n):
# xs = out["interpolation_xgrid"]
# f = interp1d(xs, y)
# return quad(lambda x: x ** (n - 1.0) * f(x), min(xs), 1.0)


def mel2(out, ys, n):
interp = InterpolatorDispatcher.from_dict(out)
lnxmin = np.log(out["interpolation_xgrid"][0])
res = 0.0
for y, bf in zip(ys, interp):
pj = bf(n, lnxmin) * np.exp(n * lnxmin)
res += y * pj
return res


with open("210.yaml", "r") as f:
t = yaml.safe_load(f)
with open("test.yaml", "r") as f:
o = yaml.safe_load(f)
# out = yadism.output.Output.load_tar("test.tar")
out = yadism.run_yadism(t, o)
out.dump_tar("test.tar")

locbf10 = [
out["F2_light"][j].orders[(0, 0, 0, 0)][0][-3][10]
for j in range(len(out["interpolation_xgrid"]))
]
pqqcbf10 = [
out["F2_light"][j].orders[(1, 0, 0, 1)][0][-3][10]
for j in range(len(out["interpolation_xgrid"]))
]
pgqgbf10 = [
out["F2_light"][j].orders[(1, 0, 0, 1)][0][7][10]
for j in range(len(out["interpolation_xgrid"]))
]

mel2bf10 = np.array([mel2(out, [0] * 10 + [1] + [0] * 39, n) for n in range(1, 10)])

mel2lobf10 = np.array([mel2(out, locbf10, n) for n in range(1, 10)])
mel2pqqcbf10 = np.array([mel2(out, pqqcbf10, n) for n in range(1, 10)])
mel2pgqgbf10 = np.array([mel2(out, pgqgbf10, n) for n in range(1, 10)])

locbf20 = [
out["F2_light"][j].orders[(0, 0, 0, 0)][0][-3][20]
for j in range(len(out["interpolation_xgrid"]))
]
pqqcbf20 = [
out["F2_light"][j].orders[(1, 0, 0, 1)][0][-3][20]
for j in range(len(out["interpolation_xgrid"]))
]
pgqgbf20 = [
out["F2_light"][j].orders[(1, 0, 0, 1)][0][7][20]
for j in range(len(out["interpolation_xgrid"]))
]

mel2bf20 = np.array([mel2(out, [0] * 20 + [1] + [0] * 29, n) for n in range(1, 10)])
mel2lobf20 = np.array([mel2(out, locbf20, n) for n in range(1, 10)])
mel2pqqcbf20 = np.array([mel2(out, pqqcbf20, n) for n in range(1, 10)])
mel2pgqgbf20 = np.array([mel2(out, pgqgbf20, n) for n in range(1, 10)])

gns = np.array([as1.gamma_ns(n, S1(n)) for n in range(1, 10)])
ggq = np.array([np.nan if n == 1 else as1.gamma_gq(n) for n in range(1, 10)])
Loading