Skip to content

Commit 664034e

Browse files
committed
Use numpy array for p in f2.py and fl.py
1 parent 0ed066d commit 664034e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/dis_tp/structure_functions/f2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def F2_FO(
5151
"""
5252
Mypdf = mkPDF(pdf, order)
5353
muR = muR_ratio * Q
54-
p = [masses(h_id), Q, charges(h_id)]
54+
p = np.array([masses(h_id), Q, charges(h_id)])
5555
nf = number_active_flavors(Q)
5656
conv_func = PDFConvolute
5757
if nf > h_id:
@@ -79,7 +79,7 @@ def F2_FO(
7979

8080
# add missing diagrams with hq+1 effects
8181
for ihq in range(h_id + 1, 6):
82-
pihq = [masses(ihq), Q, charges(h_id)]
82+
pihq = np.array([masses(ihq), Q, charges(h_id)])
8383
reg_miss = PDFConvolute(
8484
MassiveCoeffFunc.Cb_2_m_reg, Mypdf, x, Q, pihq, h_id, h_id
8585
)
@@ -346,7 +346,7 @@ def F2_M(order, pdf, x, Q, h_id, meth, target_dict=None, muF_ratio=1, muR_ratio=
346346

347347
# add missing diagrams with hq+1 effects
348348
for ihq in range(h_id + 1, 6):
349-
pihq = [masses(ihq), Q, charges(h_id)]
349+
pihq = np.array([masses(ihq), Q, charges(h_id)])
350350
reg_miss = PDFConvolute(
351351
MassiveCoeffFunc.Cb_2_m_reg, Mypdf, x, Q, pihq, nf, h_id
352352
)
@@ -495,7 +495,7 @@ def F2_Light(order, pdf, x, Q, h_id=None, meth=None, target_dict=None, muR_ratio
495495
# add the missing terms for heavy quarks
496496
# TODO: here we always neglect top effects...
497497
for ihq in range(nl + 1, 6):
498-
pihq = [masses(ihq), Q, 1]
498+
pihq = np.array([masses(ihq), Q, 1])
499499
nf = number_active_flavors(Q)
500500

501501
# for the thr quark we subtract the asymptotic

src/dis_tp/structure_functions/fl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def FL_FO(
4949
"""
5050
Mypdf = mkPDF(pdf, order)
5151
muR = muR_ratio * Q
52-
p = [masses(h_id), Q, charges(h_id)]
52+
p = np.array([masses(h_id), Q, charges(h_id)])
5353
nf = number_active_flavors(Q)
5454
conv_func = PDFConvolute
5555
if nf > h_id:

0 commit comments

Comments
 (0)