Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
niclaurenti committed Mar 25, 2024
1 parent 37c53cf commit 2e40bf5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_exact_coeff_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ def eta(x, xi):

def test_as2_muindep():
nf = 1
for kind in ['2', 'L']:
for channel in ['g', 'q']:
cf = ad.ExactCoefficientFunction(2, kind, channel, 1e-3, 1e-3, 1000, 1, 25000)
for kind in ['2']:
for channel in ['g']:
cf = ad.ExactCoefficientFunction(2, kind, channel, 1e-3, 1e-3, 1000)
for xi in np.geomspace(1e-2, 1e4, 10, endpoint=True):
xmax = 1/(1 + 4/xi)
for x in np.geomspace(1e-5, xmax, 10, endpoint=False):
res1 = cf.MuIndependentTerms(x, 1./xi, nf)
if eta(x, xi) < 1e6 and eta(x, xi) > 1e-6:
if kind == '2' and channel == 'g':
res2 = old.C2_g20(x, 1/xi)
elif kind == 'L' and channel == 'g':
if kind == 'L' and channel == 'g':
res2 = old.CL_g20(x, 1/xi)
elif kind == '2' and channel == 'q':
if kind == '2' and channel == 'q':
res2 = old.C2_ps20(x, 1/xi)
else:
if kind == 'L' and channel == 'q':
res2 = old.CL_ps20(x, 1/xi)
else:
res2 = 0
Expand Down

0 comments on commit 2e40bf5

Please sign in to comment.