From 7b36c210796f8370a8c601b000a8d3d01e34c1c5 Mon Sep 17 00:00:00 2001 From: Felix Hekhorn Date: Mon, 15 Jul 2024 14:34:18 +0300 Subject: [PATCH] Fix pylint E0606 --- src/eko/evolution_operator/flavors.py | 1 + src/eko/io/manipulate.py | 1 + src/ekore/anomalous_dimensions/polarized/space_like/__init__.py | 1 + .../anomalous_dimensions/unpolarized/space_like/__init__.py | 2 ++ .../anomalous_dimensions/unpolarized/time_like/__init__.py | 2 ++ 5 files changed, 7 insertions(+) diff --git a/src/eko/evolution_operator/flavors.py b/src/eko/evolution_operator/flavors.py index fac94a608..087294744 100644 --- a/src/eko/evolution_operator/flavors.py +++ b/src/eko/evolution_operator/flavors.py @@ -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) diff --git a/src/eko/io/manipulate.py b/src/eko/io/manipulate.py index 050e9a122..d2bf0ff76 100644 --- a/src/eko/io/manipulate.py +++ b/src/eko/io/manipulate.py @@ -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) diff --git a/src/ekore/anomalous_dimensions/polarized/space_like/__init__.py b/src/ekore/anomalous_dimensions/polarized/space_like/__init__.py index 1cb318930..68c9dc9f6 100644 --- a/src/ekore/anomalous_dimensions/polarized/space_like/__init__.py +++ b/src/ekore/anomalous_dimensions/polarized/space_like/__init__.py @@ -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: diff --git a/src/ekore/anomalous_dimensions/unpolarized/space_like/__init__.py b/src/ekore/anomalous_dimensions/unpolarized/space_like/__init__.py index 32687e489..6a350f1ee 100644 --- a/src/ekore/anomalous_dimensions/unpolarized/space_like/__init__.py +++ b/src/ekore/anomalous_dimensions/unpolarized/space_like/__init__.py @@ -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: @@ -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( diff --git a/src/ekore/anomalous_dimensions/unpolarized/time_like/__init__.py b/src/ekore/anomalous_dimensions/unpolarized/time_like/__init__.py index 267924c9b..e7a4ecd69 100644 --- a/src/ekore/anomalous_dimensions/unpolarized/time_like/__init__.py +++ b/src/ekore/anomalous_dimensions/unpolarized/time_like/__init__.py @@ -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: