Skip to content

Commit

Permalink
Fix typo in evolution_operator/init
Browse files Browse the repository at this point in the history
  • Loading branch information
niclaurenti committed Jan 9, 2024
1 parent 0f46f58 commit 3628b3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/eko/evolution_operator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ def compute_aem_list(self):
couplings = self.managers["couplings"]
mu2_steps = utils.geomspace(self.q2_from, self.q2_to, 1 + ev_op_iterations)
mu2_l = mu2_steps[0]
as_list = np.array([couplings.a_s(scale_to=mu2)[0] for mu2 in mu2_steps])
as_list = np.array([couplings.a_s(scale_to=mu2) for mu2 in mu2_steps])
a_half = np.zeros((ev_op_iterations, 2))
for step, mu2_h in enumerate(mu2_steps[1:]):
mu2_half = (mu2_h + mu2_l) / 2.0
Expand Down
6 changes: 6 additions & 0 deletions tests/eko/evolution_operator/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ def __init__(self):
def a(self, scale_to=None, nf_to=None):
return (0.1, 0.01)

def a_s(self, scale_to=None, nf_to=None):
return self.a(scale_to, nf_to)[0]

def a_em(self, scale_to=None, nf_to=None):
return self.a(scale_to, nf_to)[1]

def compute(self, a_ref, nf, scale_from, scale_to):
return a_ref

Expand Down

0 comments on commit 3628b3f

Please sign in to comment.