Skip to content

Commit

Permalink
Fix pylint E0606
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Jul 15, 2024
1 parent 22a2609 commit 7b36c21
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/eko/evolution_operator/flavors.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def qed_rotation_parameters(nf):
nd_h = nf - nu_h
a = (nd_h / nu_h * nu_l - nd_l) / (nf - 1)
b = nf / nu_h * nu_l / (nf - 1)
c, d, e, f = (np.nan,) * 4
if nf in [4, 6]: # heavy flavor is up-like
c = nd_h / nu_h
d = nu_l / (nf - 1)
Expand Down
1 change: 1 addition & 0 deletions src/eko/io/manipulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ def flavor_reshape(
return

# flip input around
inv_inputpids = np.zeros_like(inputpids)
if inputpids is not None:
inv_inputpids = np.linalg.inv(inputpids)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def gamma_ns(order, mode, n, nf):
raise NotImplementedError("Non-singlet sector is not implemented")
gamma_ns[1] = gamma_ns_1
if order[0] >= 3:
gamma_ns_2 = 0.0
if mode == 10101:
gamma_ns_2 = as3.gamma_nsp(n, nf, cache)
elif mode == 10201:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def gamma_ns(order, mode, n, nf, n3lo_ad_variation, use_fhmruvv=False):
gamma_ns[1] = gamma_ns_1
# NNLO and beyond
if order[0] >= 3:
gamma_ns_2 = 0.0
if mode == 10101:
gamma_ns_2 = as3.gamma_nsp(n, nf, cache)
elif mode == 10201:
Expand All @@ -74,6 +75,7 @@ def gamma_ns(order, mode, n, nf, n3lo_ad_variation, use_fhmruvv=False):
gamma_ns[2] = gamma_ns_2
# N3LO
if order[0] >= 4:
gamma_ns_3 = 0.0
if use_fhmruvv:
if mode == 10101:
gamma_ns_3 = as4.fhmruvv.gamma_nsp(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ def gamma_ns(order, mode, n, nf):
gamma_ns = np.zeros(order[0], np.complex_)
gamma_ns[0] = as1.gamma_ns(n, cache)
if order[0] >= 2:
gamma_ns_1 = 0.0
if mode == 10101:
gamma_ns_1 = as2.gamma_nsp(n, nf, cache)
elif mode in [10201, 10200]:
gamma_ns_1 = as2.gamma_nsm(n, nf, cache)
gamma_ns[1] = gamma_ns_1
if order[0] >= 3:
gamma_ns_2 = 0.0
if mode == 10101:
gamma_ns_2 = as3.gamma_nsp(n, nf, cache)
elif mode == 10201:
Expand Down

0 comments on commit 7b36c21

Please sign in to comment.